@@ -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,6 +21,6 @@ |
||
21 | 21 | <pre><?= var_dump($session) ?></pre> |
22 | 22 | |
23 | 23 | <p> |
24 | - <a href="<?= url($mount."session/increment") ?>">Add to session and increment<a> | |
|
25 | - <a href="<?= url($mount."session/destroy") ?>">Destroy session<a> |
|
24 | + <a href="<?= url($mount . "session/increment") ?>">Add to session and increment<a> | |
|
25 | + <a href="<?= url($mount . "session/destroy") ?>">Destroy session<a> |
|
26 | 26 | </p> |
@@ -21,5 +21,5 @@ |
||
21 | 21 | <pre><?= var_dump($session) ?></pre> |
22 | 22 | |
23 | 23 | <p> |
24 | - <a href="<?= url($mount."session") ?>">Back to session<a> |
|
24 | + <a href="<?= url($mount . "session") ?>">Back to session<a> |
|
25 | 25 | </p> |
@@ -16,9 +16,9 @@ |
||
16 | 16 | <p>Here is a set of utilities to use when learning, developing, testing and debugging Anax.</p> |
17 | 17 | |
18 | 18 | <ul> |
19 | - <li><a href="<?= url($mount."di") ?>">DI (show loaded services in $di)</a></li> |
|
20 | - <li><a href="<?= url($mount."request") ?>">Request (show details on current request)</a></li> |
|
21 | - <li><a href="<?= url($mount."router") ?>">Router (show loaded routes)</a></li> |
|
22 | - <li><a href="<?= url($mount."session") ?>">Session (show session data)</a></li> |
|
23 | - <li><a href="<?= url($mount."view") ?>">View (debug and inspect views)</a></li> |
|
19 | + <li><a href="<?= url($mount . "di") ?>">DI (show loaded services in $di)</a></li> |
|
20 | + <li><a href="<?= url($mount . "request") ?>">Request (show details on current request)</a></li> |
|
21 | + <li><a href="<?= url($mount . "router") ?>">Router (show loaded routes)</a></li> |
|
22 | + <li><a href="<?= url($mount . "session") ?>">Session (show session data)</a></li> |
|
23 | + <li><a href="<?= url($mount . "view") ?>">View (debug and inspect views)</a></li> |
|
24 | 24 | </ul> |
@@ -13,7 +13,7 @@ |
||
13 | 13 | $navbar->setDI($di); |
14 | 14 | $html = $navbar->createMenuWithSubMenus($navbarConfig); |
15 | 15 | |
16 | -$classes = "rm-navbar " . ( $class ?? null); |
|
16 | +$classes = "rm-navbar " . ($class ?? null); |
|
17 | 17 | |
18 | 18 | |
19 | 19 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | $navbar->setDI($di); |
14 | 14 | $html = $navbar->createMenuWithSubMenus($navbarConfig); |
15 | 15 | |
16 | -$classes = "rm-navbar-max rm-navbar rm-max rm-swipe-right " . ( $class ?? null); |
|
16 | +$classes = "rm-navbar-max rm-navbar rm-max rm-swipe-right " . ($class ?? null); |
|
17 | 17 | |
18 | 18 | |
19 | 19 | ?><!-- menu wrapper --> |
@@ -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 |
@@ -37,9 +37,12 @@ |
||
37 | 37 | <div class="next"> |
38 | 38 | <?php if ($nextPageUrl) : ?> |
39 | 39 | <a href="<?= url($nextPageUrl) ?>"><?= $nextStr ?></a> |
40 | - <?php else : ?> |
|
40 | + <?php else { |
|
41 | + : ?> |
|
41 | 42 | |
42 | - <?php endif; ?> |
|
43 | + <?php endif; |
|
44 | +} |
|
45 | +?> |
|
43 | 46 | </div> |
44 | 47 | |
45 | 48 | <div class="center"> |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $this->urlipstack = "http://api.ipstack.com"; |
26 | 26 | $this->urldarksky = "https://api.darksky.net/forecast"; |
27 | 27 | //Get apikey |
28 | - $apikeys = require __DIR__ . "/../../config/apikeys.php"; |
|
28 | + $apikeys = require __DIR__ . "/../../config/apikeys.php"; |
|
29 | 29 | //Set apikey |
30 | 30 | $this->apikeyIpstack = $apikeys["ipstack"]; |
31 | 31 | $this->apikeyDarksky = $apikeys["darksky"]; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | // Changes UNIX-date to "normal" |
88 | 88 | foreach ($decoded_result->daily->data as $key => $value) { |
89 | - $timestamp=$decoded_result->daily->data[$key]->time; |
|
89 | + $timestamp = $decoded_result->daily->data[$key]->time; |
|
90 | 90 | $decoded_result->daily->data[$key]->time = gmdate("Y-m-d", $timestamp); |
91 | 91 | } |
92 | 92 |
@@ -35,7 +35,6 @@ discard block |
||
35 | 35 | /** |
36 | 36 | * Set the view to be used for the layout. |
37 | 37 | * |
38 | - * @param array $view configuration to create up the view. |
|
39 | 38 | * |
40 | 39 | * @return $this |
41 | 40 | */ |
@@ -70,7 +69,6 @@ discard block |
||
70 | 69 | /** |
71 | 70 | * Set the view to be used for the layout. |
72 | 71 | * |
73 | - * @param array $view configuration to create up the view. |
|
74 | 72 | * |
75 | 73 | * @return $this |
76 | 74 | */ |