Test Failed
Push — master ( 4527f5...6e7815 )
by Ylva
21:41 queued 04:42
created
a/vendor/anax/view/view/anax/v2/block/default.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
a/vendor/anax/view/src/View/ViewCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
220 220
             return $this;
221 221
         }
222 222
 
223
-        mergesort($this->views[$region], function ($viewA, $viewB) {
223
+        mergesort($this->views[$region], function($viewA, $viewB) {
224 224
             $sortA = $viewA->sortOrder();
225 225
             $sortB = $viewB->sortOrder();
226 226
 
Please login to merge, or discard this patch.
a/vendor/anax/view/src/View/ViewHelperFunctions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         } elseif (is_string($variable)) {
220 220
             $res .= ": \"$variable\"";
221 221
         } elseif (is_bool($variable)) {
222
-            $res .= ": " . ( $variable ? "true" : "false" );
222
+            $res .= ": " . ($variable ? "true" : "false");
223 223
         }
224 224
         $res .= "\n";
225 225
     }
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     $namespace = strtolower(__NAMESPACE__);
229 229
     $matches = array_filter(
230 230
         $functions["user"],
231
-        function ($function) use ($namespace) {
231
+        function($function) use ($namespace) {
232 232
             return substr($function, 0, strlen($namespace)) === $namespace;
233 233
         }
234 234
     );
Please login to merge, or discard this patch.
a/vendor/anax/response/config/di/response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
         "response" => [
10 10
             "shared" => true,
11 11
             //"callback" => "\Anax\Response\Response",
12
-            "callback" => function () {
12
+            "callback" => function() {
13 13
                 $obj = new \Anax\Response\ResponseUtility();
14 14
                 $obj->setDI($this);
15 15
                 return $obj;
Please login to merge, or discard this patch.
a/vendor/anax/response/test/Response/ResponseUtilityTest.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -24,22 +24,22 @@
 block discarded – undo
24 24
     {
25 25
         self::$di = new DIFactoryConfig();
26 26
         self::$di->loadServices([
27
-           "services" => [
28
-               "request" => [
29
-                   "shared" => true,
30
-                   "callback" => function () {
31
-                       $obj = new MockRequest();
32
-                       return $obj;
33
-                   }
34
-               ],
35
-               "url" => [
36
-                   "shared" => true,
37
-                   "callback" => function () {
38
-                       $obj = new MockUrl();
39
-                       return $obj;
40
-                   }
41
-               ],
42
-           ],
27
+            "services" => [
28
+                "request" => [
29
+                    "shared" => true,
30
+                    "callback" => function () {
31
+                        $obj = new MockRequest();
32
+                        return $obj;
33
+                    }
34
+                ],
35
+                "url" => [
36
+                    "shared" => true,
37
+                    "callback" => function () {
38
+                        $obj = new MockUrl();
39
+                        return $obj;
40
+                    }
41
+                ],
42
+            ],
43 43
         ]);
44 44
     }
45 45
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,14 +27,14 @@
 block discarded – undo
27 27
            "services" => [
28 28
                "request" => [
29 29
                    "shared" => true,
30
-                   "callback" => function () {
30
+                   "callback" => function() {
31 31
                        $obj = new MockRequest();
32 32
                        return $obj;
33 33
                    }
34 34
                ],
35 35
                "url" => [
36 36
                    "shared" => true,
37
-                   "callback" => function () {
37
+                   "callback" => function() {
38 38
                        $obj = new MockUrl();
39 39
                        return $obj;
40 40
                    }
Please login to merge, or discard this patch.
a/vendor/anax/response/test/Response/ResponseTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
     {
114 114
         $resp = new Response();
115 115
 
116
-        $resp->setBody(function () {
116
+        $resp->setBody(function() {
117 117
             return "Callable";
118 118
         });
119 119
         $res = $resp->getBody();
Please login to merge, or discard this patch.
a/vendor/anax/response/src/Response/Response.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
 class Response
9 9
 {
10 10
     /**
11
-    * @var array  $headers    set all headers to send.
12
-    * @var array  $statusCode set statuscode to use.
13
-    * @var string $body       body to send with response.
14
-    * @var string $filename   a filename to send for download.
15
-    */
11
+     * @var array  $headers    set all headers to send.
12
+     * @var array  $statusCode set statuscode to use.
13
+     * @var string $body       body to send with response.
14
+     * @var string $filename   a filename to send for download.
15
+     */
16 16
     private $headers = [];
17 17
     private $statusCode = null;
18 18
     private $body = null;
Please login to merge, or discard this patch.
a/vendor/anax/navigation/src/Navigation/Navbar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
a/vendor/anax/commons/config/commons.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
 error_reporting(-1); // Report all type of errors
26 26
 //error_reporting(E_ALL ^ E_DEPRECATED);  // Report no deprecated errors
27 27
 if (constant("ANAX_DEVELOPMENT")) {
28
-    ini_set("display_errors", 1);  // Display all errors
28
+    ini_set("display_errors", 1); // Display all errors
29 29
 } elseif (constant("ANAX_PRODUCTION")) {
30
-    ini_set("display_errors", 0);  // Display no errors
31
-    ini_set("log_errors", 1);      // Log errors to file error_log
30
+    ini_set("display_errors", 0); // Display no errors
31
+    ini_set("log_errors", 1); // Log errors to file error_log
32 32
     ini_set("error_log", ANAX_INSTALL_PATH . "/log/error_log");
33 33
 }
34 34
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 /**
38 38
  * Default exception handler.
39 39
  */
40
-set_exception_handler(function ($e) {
40
+set_exception_handler(function($e) {
41 41
     echo "<p>Anax: Uncaught exception:</p><p>Line "
42 42
         . $e->getLine()
43 43
         . " in file "
Please login to merge, or discard this patch.