Passed
Branch master (f0e7b7)
by Darío
02:39 queued 11s
created
src/Mvc/Layout.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
     {
165 165
         foreach ($params as $param => $value)
166 166
         {
167
-            if (property_exists(__CLASS__, strtolower($param)) && method_exists($this, 'set'.$param))
168
-                $this->{'set'.$param}($value);
167
+            if (property_exists(__CLASS__, strtolower($param)) && method_exists($this, 'set' . $param))
168
+                $this->{'set' . $param}($value);
169 169
         }
170 170
     }
171 171
 
@@ -185,9 +185,9 @@  discard block
 block discarded – undo
185 185
 
186 186
         if ($controller->getShowView())
187 187
         {
188
-            $view = 'module/'      . $controller->getModule()->getModuleName() .
189
-                    '/source/view/'. basename(str_replace('\\','/',get_class($controller))) .
190
-                    '/'            . $controller->getMethod() . '.phtml';
188
+            $view = 'module/' . $controller->getModule()->getModuleName() .
189
+                    '/source/view/' . basename(str_replace('\\', '/', get_class($controller))) .
190
+                    '/' . $controller->getMethod() . '.phtml';
191 191
 
192 192
             $this->view = $view;
193 193
         }
Please login to merge, or discard this patch.
src/Db/Driver/AbstractDriver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -298,8 +298,8 @@
 block discarded – undo
298 298
     {
299 299
         foreach ($options as $option => $value)
300 300
         {
301
-            if (property_exists(__CLASS__, strtolower($option)) && method_exists($this, 'set'.$option))
302
-                $this->{'set'.$option}($value);
301
+            if (property_exists(__CLASS__, strtolower($option)) && method_exists($this, 'set' . $option))
302
+                $this->{'set' . $option}($value);
303 303
         }
304 304
     }
305 305
 
Please login to merge, or discard this patch.
src/Db/Driver/MySQL.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             {
109 109
                 if (is_string($param_values[$i]))
110 110
                     $bind_types .= 's';
111
-                else if(is_float($param_values[$i]))
111
+                else if (is_float($param_values[$i]))
112 112
                     $bind_types .= 'd';
113 113
                 # [POSSIBLE BUG] - To Future revision (What about non-string and non-decimal types ?)
114 114
                 else
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             $this->rowsAffected = $this->result->affected_rows;
165 165
 
166 166
         if ($this->transac_mode)
167
-            $this->transac_result = is_null($this->transac_result) ? $this->result: $this->transac_result && $this->result;
167
+            $this->transac_result = is_null($this->transac_result) ? $this->result : $this->transac_result && $this->result;
168 168
 
169 169
         return $this->result;
170 170
     }
Please login to merge, or discard this patch.
src/Db/Driver/Oracle.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
             ? $this->dbname
53 53
             :
54 54
                 (!is_null($this->dbport) && !empty($this->dbport))
55
-                    ? $this->dbhost .":". $this->dbport ."/". $this->dbname
56
-                    : $this->dbhost ."/". $this->dbname;
55
+                    ? $this->dbhost . ":" . $this->dbport . "/" . $this->dbname
56
+                    : $this->dbhost . "/" . $this->dbname;
57 57
 
58
-        $this->dbconn = @oci_connect($this->dbuser,  $this->dbpass, $connection_string, $this->dbchar);
58
+        $this->dbconn = @oci_connect($this->dbuser, $this->dbpass, $connection_string, $this->dbchar);
59 59
 
60 60
         if ($this->dbconn === false)
61 61
         {
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         $prev_error_handler = set_error_handler(['\Drone\Error\ErrorHandler', 'errorControlOperator'], E_ALL);
123 123
 
124 124
         // may be throw a Fatal error (Ex: Maximum execution time)
125
-        $r = ($this->transac_mode) ? oci_execute($stid, OCI_NO_AUTO_COMMIT) : oci_execute($stid,  OCI_COMMIT_ON_SUCCESS);
125
+        $r = ($this->transac_mode) ? oci_execute($stid, OCI_NO_AUTO_COMMIT) : oci_execute($stid, OCI_COMMIT_ON_SUCCESS);
126 126
 
127 127
         set_error_handler($prev_error_handler);
128 128
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         $this->numFields = oci_num_fields($stid);
144 144
 
145 145
         if ($this->transac_mode)
146
-            $this->transac_result = is_null($this->transac_result) ? $this->result: $this->transac_result && $this->result;
146
+            $this->transac_result = is_null($this->transac_result) ? $this->result : $this->transac_result && $this->result;
147 147
 
148 148
         return $this->result;
149 149
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
         if ($this->result)
188 188
         {
189
-            while ( ($row = @oci_fetch_array($this->result, OCI_BOTH + OCI_RETURN_NULLS)) !== false )
189
+            while (($row = @oci_fetch_array($this->result, OCI_BOTH + OCI_RETURN_NULLS)) !== false)
190 190
             {
191 191
                 $data[] = $row;
192 192
             }
Please login to merge, or discard this patch.
src/FileSystem/Shell.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -93,24 +93,24 @@  discard block
 block discarded – undo
93 93
             {
94 94
                 foreach ($contents as $i)
95 95
                 {
96
-                    if (is_file($handler.'/'.$i))
96
+                    if (is_file($handler . '/' . $i))
97 97
                     {
98
-                        $allContents[] = $handler.'/'.$i;
98
+                        $allContents[] = $handler . '/' . $i;
99 99
 
100
-                        $this->buffer = $handler.'/'.$i;
100
+                        $this->buffer = $handler . '/' . $i;
101 101
                         call_user_func($fileCallback, $this);
102 102
                     }
103
-                    elseif (is_dir($handler.'/'.$i))
103
+                    elseif (is_dir($handler . '/' . $i))
104 104
                     {
105
-                        $allContents[] = $handler.'/'.$i;
105
+                        $allContents[] = $handler . '/' . $i;
106 106
 
107
-                        $this->buffer = $handler.'/'.$i;
108
-                        $this->getContents($handler.'/'.$i, $fileCallback, $dirCallback);
107
+                        $this->buffer = $handler . '/' . $i;
108
+                        $this->getContents($handler . '/' . $i, $fileCallback, $dirCallback);
109 109
 
110 110
                         $directory = scandir($handler);
111 111
 
112 112
                         if (!count($directory) < 3)
113
-                            $this->buffer = $handler.'/'.$i;
113
+                            $this->buffer = $handler . '/' . $i;
114 114
 
115 115
                         call_user_func($dirCallback, $this);
116 116
                     }
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
                 if (!empty($path))
197 197
                     if (!strlen(stristr($item, $path)) > 0)
198 198
                         continue;
199
-                if (strstr($item,'~') === false && $item != '.' && $item != '..')
199
+                if (strstr($item, '~') === false && $item != '.' && $item != '..')
200 200
                     $filesToReturn[] = $item;
201 201
             }
202 202
         }
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
         if (is_dir($dest))
300 300
         {
301 301
             if (!$recursive)
302
-                copy($file, $dest.'/'.$file);
302
+                copy($file, $dest . '/' . $file);
303 303
             else {
304 304
 
305 305
                 $files = array();
@@ -318,14 +318,14 @@  discard block
 block discarded – undo
318 318
 
319 319
                     foreach ($files[1] as $item)
320 320
                     {
321
-                        if (!file_exists($dest.'/'.$item))
321
+                        if (!file_exists($dest . '/' . $item))
322 322
                             mkdir("$dest/$item", 0777, true);
323 323
                     }
324 324
 
325 325
                     foreach ($files[0] as $item)
326 326
                     {
327 327
                         if (!file_exists("$dest/$files"))
328
-                            copy($item, $dest.'/'.$item);
328
+                            copy($item, $dest . '/' . $item);
329 329
                     }
330 330
                 });
331 331
             }
@@ -350,12 +350,12 @@  discard block
 block discarded – undo
350 350
             throw new Exception("Missing parameter for mv!");
351 351
 
352 352
         if (is_dir($newfile))
353
-                $newfile .= '/'.basename($oldfile);
353
+                $newfile .= '/' . basename($oldfile);
354 354
 
355 355
         if ($oldfile == $newfile)
356 356
             throw new Exception("'$oldfile' and '$newfile' are the same file");
357 357
 
358
-        if(!rename($oldfile, $newfile))
358
+        if (!rename($oldfile, $newfile))
359 359
             return false;
360 360
 
361 361
         return true;
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
         else {
386 386
             if (!is_dir($dir))
387 387
             {
388
-                if(!mkdir("$dir", 0777))
388
+                if (!mkdir("$dir", 0777))
389 389
                     return false;
390 390
             }
391 391
         }
Please login to merge, or discard this patch.
src/Db/Driver/SQLServer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             $exec = sqlsrv_execute($stmt);
117 117
         }
118 118
         else
119
-            $exec = $this->result = sqlsrv_query($this->dbconn, $sql, $params, array( "Scrollable" => SQLSRV_CURSOR_KEYSET ));
119
+            $exec = $this->result = sqlsrv_query($this->dbconn, $sql, $params, array("Scrollable" => SQLSRV_CURSOR_KEYSET));
120 120
 
121 121
         if ($exec === false)
122 122
         {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $this->rowsAffected = sqlsrv_rows_affected($this->result);
138 138
 
139 139
         if ($this->transac_mode)
140
-            $this->transac_result = is_null($this->transac_result) ? $this->result: $this->transac_result && $this->result;
140
+            $this->transac_result = is_null($this->transac_result) ? $this->result : $this->transac_result && $this->result;
141 141
 
142 142
         return $this->result;
143 143
     }
Please login to merge, or discard this patch.