Passed
Push — 1.0.0-dev ( 048006...247c52 )
by nguereza
02:47
created
core/classes/Module.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@
 block discarded – undo
65 65
          */
66 66
         public function add($name) {
67 67
             if (in_array($name, self::$list)) {
68
-               $logger->info('The module [' .$name. '] already added skipping.');
69
-               return $this;
68
+                $logger->info('The module [' .$name. '] already added skipping.');
69
+                return $this;
70 70
             }
71 71
             self::$list[] = $name;
72 72
             return $this;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
          */
66 66
         public function add($name) {
67 67
             if (in_array($name, self::$list)) {
68
-               $logger->info('The module [' .$name. '] already added skipping.');
68
+               $logger->info('The module [' . $name . '] already added skipping.');
69 69
                return $this;
70 70
             }
71 71
             self::$list[] = $name;
Please login to merge, or discard this patch.
core/classes/Router.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
          * Remove the DOCUMENT_ROOT and front controller from segments if exists
408 408
          * @return void
409 409
          */
410
-        protected function removeDocumentRootFrontControllerFromSegments(){
410
+        protected function removeDocumentRootFrontControllerFromSegments() {
411 411
             $segment = $this->segments;
412 412
             $baseUrl = get_config('base_url');
413 413
             //check if the app is not in DOCUMENT_ROOT
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
                     break;
475 475
                 }
476 476
             }
477
-            if($findIndex !== -1){
477
+            if ($findIndex !== -1) {
478 478
                 array_shift($args);
479 479
                 //check if this contains an module
480 480
                 $moduleControllerMethod = explode('#', $this->callback[$findIndex]);
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
          * or the current request does not use module
515 515
          * @return void
516 516
          */
517
-        protected function determineRouteParamsIfNoModuleOrNotFound(){
517
+        protected function determineRouteParamsIfNoModuleOrNotFound() {
518 518
             $segment = $this->segments;
519 519
             //controller
520 520
             if (isset($segment[0])) {
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
          * Find file path of the current controller using the current module
535 535
          * @return boolean true if the file path is found otherwise false.
536 536
          */
537
-        protected function findModuleControllerFullPath(){
537
+        protected function findModuleControllerFullPath() {
538 538
             $path = Module::findControllerFullPath(ucfirst($this->controller), $this->module);
539 539
             if (!$path) {
540 540
                 $this->logger->info('The controller [' . $this->controller . '] not found in the module, may be will use the module [' . $this->module . '] as controller');
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
          * or the current request use module
551 551
          * @return void
552 552
          */
553
-        protected function determineRouteParamsIfAppHaveModuleOrFound(){
553
+        protected function determineRouteParamsIfAppHaveModuleOrFound() {
554 554
             //get the module list
555 555
             $modules = Module::getModuleList();
556 556
             $segment = $this->segments;
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
                     $this->controller = $segment[0];
565 565
 
566 566
                     //check if the request use the same module name and controller
567
-                    if($this->findModuleControllerFullPath()){
567
+                    if ($this->findModuleControllerFullPath()) {
568 568
                         array_shift($segment);
569 569
                     }
570 570
                 }
Please login to merge, or discard this patch.
core/libraries/Email.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
             }
283 283
             $filename = $this->encodeUtf8($this->filterOther((string) $filename));
284 284
             if (empty($data)) {
285
-               $data = $this->getAttachmentData($path);
285
+                $data = $this->getAttachmentData($path);
286 286
             }
287 287
             $this->_attachments[] = array(
288 288
                 'path' => $path,
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
             $addresses = array();
347 347
             foreach ($pairs as $name => $email) {
348 348
                 if (is_numeric($name)) {
349
-                   $name = null;
349
+                    $name = null;
350 350
                 }
351 351
                 $addresses[] = $this->formatHeader($email, $name);
352 352
             }
Please login to merge, or discard this patch.