Test Setup Failed
Branch master (62dca1)
by Deel
04:58
created
config/di/request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     "services" => [
8 8
         "request" => [
9 9
             "shared" => true,
10
-            "callback" => function () {
10
+            "callback" => function() {
11 11
                 $obj = new \Anax\Request\Request();
12 12
                 $obj->init();
13 13
                 return $obj;
Please login to merge, or discard this patch.
config/di/page.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     "services" => [
9 9
         "page" => [
10 10
             "shared" => true,
11
-            "callback" => function () {
11
+            "callback" => function() {
12 12
                 $page = new \Anax\Page\Page();
13 13
                 $page->setDI($this);
14 14
 
Please login to merge, or discard this patch.
config/router/700_example.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
             "info" => "Just say hi with a string.",
14 14
             "method" => null,
15 15
             "path" => "hi",
16
-            "handler" => function () {
16
+            "handler" => function() {
17 17
                 //echo "Ho";
18 18
                 return "Hi.";
19 19
             },
Please login to merge, or discard this patch.
config/commons.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
24 24
 error_reporting(-1); // Report all type of errors
25 25
 //error_reporting(E_ALL ^ E_DEPRECATED);  // Report no deprecated errors
26 26
 if (constant("ANAX_DEVELOPMENT")) {
27
-    ini_set("display_errors", 1);  // Display all errors
27
+    ini_set("display_errors", 1); // Display all errors
28 28
 } elseif (constant("ANAX_PRODUCTION")) {
29
-    ini_set("display_errors", 0);  // Display no errors
30
-    ini_set("log_errors", 1);      // Log errors to file error_log
29
+    ini_set("display_errors", 0); // Display no errors
30
+    ini_set("log_errors", 1); // Log errors to file error_log
31 31
     ini_set("error_log", ANAX_INSTALL_PATH . "/log/error_log");
32 32
 }
33 33
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 /**
37 37
  * Default exception handler.
38 38
  */
39
-set_exception_handler(function ($e) {
39
+set_exception_handler(function($e) {
40 40
     echo "<p>Anax: Uncaught exception:</p><p>Line "
41 41
         . $e->getLine()
42 42
         . " in file "
Please login to merge, or discard this patch.
view/anax/v2/dev/session.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
view/anax/v2/dev/session_increment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,5 +25,5 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
view/anax/v2/dev/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
view/anax/v2/blog-toc-next-prev-page/default.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,9 +37,12 @@
 block discarded – undo
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
         &nbsp;
42
-        <?php endif; ?>
43
+        <?php endif;
44
+}
45
+?>
43 46
     </div>
44 47
 
45 48
     <div class="center">
Please login to merge, or discard this patch.
view/anax/v2/navbar/responsive_submenus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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 -->
Please login to merge, or discard this patch.