Removed unreachable code

Removed useless method overriding
This commit is contained in:
TimZ99 2019-12-12 17:33:47 +01:00
parent 7fbab86064
commit 97f8a6d637
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
3 changed files with 3 additions and 9 deletions

View File

@ -165,7 +165,9 @@ abstract class AbstractController implements ControllerInterface
} }
$this->xhr = (bool) psm_GET('xhr', psm_POST('xhr', false)); $this->xhr = (bool) psm_GET('xhr', psm_POST('xhr', false));
if (!in_array($action, $this->actions) || !($result = $this->runAction($action))) { $result = $this->runAction($action);
if (!in_array($action, $this->actions) || !$result) {
$result = $this->runAction($this->action_default); $result = $this->runAction($this->action_default);
} }

View File

@ -35,11 +35,6 @@ use psm\Service\Database;
abstract class AbstractServerController extends AbstractController abstract class AbstractServerController extends AbstractController
{ {
public function __construct(Database $db, \Twig_Environment $twig)
{
parent::__construct($db, $twig);
}
/** /**
* Get all servers for the current user * Get all servers for the current user
* @param Countable|array|\PDOStatement $server_id (int) if true only that server will be retrieved. * @param Countable|array|\PDOStatement $server_id (int) if true only that server will be retrieved.

View File

@ -275,7 +275,6 @@ class StatusNotifier
$this->combiNotification['notifications'][$method][$status][$this->server_id] = $this->combiNotification['notifications'][$method][$status][$this->server_id] =
psm_parse_msg($this->status_new, $method . '_message', $this->server, true); psm_parse_msg($this->status_new, $method . '_message', $this->server, true);
return;
} }
/** /**
@ -324,7 +323,6 @@ class StatusNotifier
} }
} }
unset($notifications); unset($notifications);
return;
} }
/** /**
@ -403,7 +401,6 @@ class StatusNotifier
$mail->Send(); $mail->Send();
$mail->ClearAddresses(); $mail->ClearAddresses();
} }
return;
} }
/** /**