@@ -211,7 +211,7 @@ |
||
211 | 211 | $sidebarLeft = regionHasContent("sidebar-left"); |
212 | 212 | $sidebarRight = regionHasContent("sidebar-right"); |
213 | 213 | $class = ""; |
214 | -$class .= $sidebarLeft ? "has-sidebar-left " : ""; |
|
214 | +$class .= $sidebarLeft ? "has-sidebar-left " : ""; |
|
215 | 215 | $class .= $sidebarRight ? "has-sidebar-right " : ""; |
216 | 216 | $class .= empty($class) ? "" : "has-sidebar"; |
217 | 217 | ?> |
@@ -21,7 +21,7 @@ |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | // Prepare title |
24 | -$title = isset($title) && !empty($title)? $title : null; |
|
24 | +$title = isset($title) && !empty($title) ? $title : null; |
|
25 | 25 | $header = isset($header) ? $header : $title; |
26 | 26 | |
27 | 27 | // Prepare content into text |
@@ -21,7 +21,6 @@ |
||
21 | 21 | * @param array $args as a variadic to catch all arguments. |
22 | 22 | * |
23 | 23 | * @throws Anax\Route\Exception\NotFoundException when route is not found. |
24 | - |
|
25 | 24 | * @return object as the response. |
26 | 25 | * |
27 | 26 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
@@ -22,7 +22,6 @@ |
||
22 | 22 | * @param string $message with details. |
23 | 23 | * |
24 | 24 | * @throws Anax\Route\Exception\NotFoundException |
25 | - |
|
26 | 25 | * @return object as the response. |
27 | 26 | */ |
28 | 27 | public function catchAll(...$args) : object |
@@ -56,7 +56,7 @@ |
||
56 | 56 | { |
57 | 57 | $ipv = $this->di->request->getGet("ip"); |
58 | 58 | |
59 | - $valid = (filter_var($ipv, FILTER_VALIDATE_IP)) ? "true" : "false"; |
|
59 | + $valid = (filter_var($ipv, FILTER_VALIDATE_IP)) ? "true" : "false"; |
|
60 | 60 | |
61 | 61 | $host = gethostbyaddr($ipv); |
62 | 62 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | $check = new IPChecker(); |
60 | 60 | |
61 | 61 | if ($doVerify) { |
62 | - $result = $check->checkIpv($address); |
|
62 | + $result = $check->checkIpv($address); |
|
63 | 63 | |
64 | 64 | $session->set("res", $result); |
65 | 65 | $session->set("ip", $address); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | // Create the ul li menu from the array, use an anonomous recursive |
86 | 86 | // function that returns an array of values. |
87 | - $createMenu = function ( |
|
87 | + $createMenu = function( |
|
88 | 88 | $items, |
89 | 89 | $ulId = null, |
90 | 90 | $ulClass = null |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | } |
129 | 129 | |
130 | 130 | // Is there a class set for this item, then use it |
131 | - $class = isset($item["class"]) && ! is_null($item["class"]) |
|
131 | + $class = isset($item["class"]) && !is_null($item["class"]) |
|
132 | 132 | ? $item["class"] |
133 | 133 | : null; |
134 | 134 |
@@ -25,5 +25,5 @@ |
||
25 | 25 | <pre><?= var_dump($session) ?></pre> |
26 | 26 | |
27 | 27 | <p> |
28 | - <a href="<?= url($mount."session") ?>">Back to session<a> |
|
28 | + <a href="<?= url($mount . "session") ?>">Back to session<a> |
|
29 | 29 | </p> |
@@ -56,7 +56,7 @@ |
||
56 | 56 | { |
57 | 57 | $ipv = $this->di->request->getGet("ip"); |
58 | 58 | |
59 | - $valid = (filter_var($ipv, FILTER_VALIDATE_IP)) ? "true" : "false"; |
|
59 | + $valid = (filter_var($ipv, FILTER_VALIDATE_IP)) ? "true" : "false"; |
|
60 | 60 | |
61 | 61 | $host = gethostbyaddr($ipv); |
62 | 62 |