Test Failed
Push — 1.0.0-dev ( ef06ce...62b9b2 )
by nguereza
05:33
created
core/classes/Module.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
          */
59 59
         public function add($name) {
60 60
             if (in_array($name, $this->list)) {
61
-               $this->logger->warning('The module [' .$name. '] already added skipping.');
62
-               return $this;
61
+                $this->logger->warning('The module [' .$name. '] already added skipping.');
62
+                return $this;
63 63
             }
64 64
             $this->list[] = $name;
65 65
             return $this;
@@ -91,10 +91,10 @@  discard block
 block discarded – undo
91 91
             $this->list = array();
92 92
         }
93 93
 
94
-         /**
95
-         * Get the list of module loaded
96
-         * @return array the module list
97
-         */
94
+            /**
95
+             * Get the list of module loaded
96
+             * @return array the module list
97
+             */
98 98
         public function getModuleList() {
99 99
             return $this->list;
100 100
         }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
             $this->logger->debug('Check if the application contains the modules ...');
242 242
             $dirList = glob(MODULE_PATH . '*', GLOB_ONLYDIR);
243 243
             if ($dirList !== false) {
244
-               $this->list = array_map('basename', $dirList);
244
+                $this->list = array_map('basename', $dirList);
245 245
             }
246 246
             if (!empty($this->list)) {
247 247
                 $this->logger->info('The application contains the module below [' . implode(', ', $this->list) . ']');
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
             $filePath = MODULE_PATH . $module . DS . $type . DS . $classFile;
265 265
             if (file_exists($filePath)) {
266 266
                 $this->logger->info('Found class [' . $class . '] in module [' . $module . '] '
267
-                                     . 'for [' . $type . '] the file path is [' . $filePath . ']');
267
+                                        . 'for [' . $type . '] the file path is [' . $filePath . ']');
268 268
                 return $filePath;
269 269
             }
270 270
             $this->logger->info('Class [' . $class . '] does not exist in the module [' . $module . '] for [' . $type . ']');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
          */
59 59
         public function add($name) {
60 60
             if (in_array($name, $this->list)) {
61
-               $this->logger->warning('The module [' .$name. '] already added skipping.');
61
+               $this->logger->warning('The module [' . $name . '] already added skipping.');
62 62
                return $this;
63 63
             }
64 64
             $this->list[] = $name;
Please login to merge, or discard this patch.
core/classes/Log.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
         protected function getLogDebugBacktraceInfo() {
318 318
             $dtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
319 319
             $i = 0;
320
-            while ($dtrace[$i]['file'] == __FILE__ ) {
320
+            while ($dtrace[$i]['file'] == __FILE__) {
321 321
                 $i++;
322 322
             } 
323 323
             $fileInfo = $dtrace[$i];
@@ -333,11 +333,11 @@  discard block
 block discarded – undo
333 333
             if (isset($fileInfo['line'])) {
334 334
                 $line = $fileInfo['line'];
335 335
             }
336
-            if (isset($dtrace[$i+1]['function'])) {
337
-                $function = $dtrace[$i+1]['function'];
336
+            if (isset($dtrace[$i + 1]['function'])) {
337
+                $function = $dtrace[$i + 1]['function'];
338 338
             }
339
-            if (isset($dtrace[$i+1]['class'])) {
340
-                $class = $dtrace[$i+1]['class'];
339
+            if (isset($dtrace[$i + 1]['class'])) {
340
+                $class = $dtrace[$i + 1]['class'];
341 341
             }
342 342
             
343 343
             return array(
Please login to merge, or discard this patch.