Test Failed
Push — dev ( c21d30...f9b58b )
by Plamen
01:58
created
TraitHelper.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,12 +84,12 @@
 block discarded – undo
84 84
             if (property_exists(__CLASS__, $name)) {
85 85
                 $val = function (&$val) use ($nodes) {
86 86
                     $temp = &$val;
87
-    				foreach ($nodes as $key) {
87
+                    foreach ($nodes as $key) {
88 88
                         if ($key === 'last') {
89 89
                             return array_pop($temp);
90 90
                         }
91 91
                         $temp = &$temp[$key];
92
-    				}
92
+                    }
93 93
 
94 94
                     return $temp;
95 95
                 };
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
 
18 18
     public static function assets($path = '/public/table')
19 19
     {
20
-        return "<script src=\"{$path}/table_helper.js\" defer></script>\n\t".
21
-            "<script src=\"{$path}/table.js\" defer></script>\n\t".
20
+        return "<script src=\"{$path}/table_helper.js\" defer></script>\n\t" .
21
+            "<script src=\"{$path}/table.js\" defer></script>\n\t" .
22 22
             "<link href=\"{$path}/table.css\" rel=\"stylesheet\">\n";
23 23
     }
24 24
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             if ($value === true || (empty($value) && $value != 0)) {
36 36
                 $list[] = $key;
37 37
             } else {
38
-                $list[] = $key.'="'.$value.'"';
38
+                $list[] = $key . '="' . $value . '"';
39 39
             }
40 40
         }
41 41
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             self::$cols = [];
70 70
             self::$t['rows'] = null;
71 71
         } else {
72
-            echo 'Existing table-id used in table::create(): '.$items;
72
+            echo 'Existing table-id used in table::create(): ' . $items;
73 73
         }
74 74
     }
75 75
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             $nodes = explode('.', $property);
83 83
             $name = array_shift($nodes);
84 84
             if (property_exists(__CLASS__, $name)) {
85
-                $val = function (&$val) use ($nodes) {
85
+                $val = function(&$val) use ($nodes) {
86 86
                     $temp = &$val;
87 87
     				foreach ($nodes as $key) {
88 88
                         if ($key === 'last') {
@@ -98,12 +98,12 @@  discard block
 block discarded – undo
98 98
                     return $v === $value;
99 99
                 }
100 100
 
101
-                throw new Exception('Missing value ('.implode($nodes).').');
101
+                throw new Exception('Missing value (' . implode($nodes) . ').');
102 102
             }
103 103
 
104
-            throw new Exception('Undefined property ('.$name.').');
104
+            throw new Exception('Undefined property (' . $name . ').');
105 105
         } catch (Exception $e) {
106
-            echo 'Caught exception: ',  $e->getMessage(), "\n";
106
+            echo 'Caught exception: ', $e->getMessage(), "\n";
107 107
         }
108 108
 
109 109
         return false;
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,8 @@
 block discarded – undo
116 116
      * 
117 117
      * @return mixed
118 118
      */
119
-    protected static function filterInput(int $type, string $variable_name) {
119
+    protected static function filterInput(int $type, string $variable_name)
120
+    {
120 121
         return filter_input($type, $variable_name);
121 122
     }
122 123
 }
Please login to merge, or discard this patch.