Completed
Push — master ( 4aee41...86ed77 )
by Insolita
02:15
created
src/lib/CodestatService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
                 continue;
67 67
             }
68 68
             $result = (new Analyser())->countFiles($group->getFiles(), false);
69
-            foreach ($result as $key =>$value){
69
+            foreach ($result as $key =>$value) {
70 70
                 $statistic[$group->getName()][] = ['Metric'=>$key, 'Value'=>$value];
71 71
             }
72 72
             unset($result);
Please login to merge, or discard this patch.
src/controllers/DefaultController.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         $this->climate->table($summary);
48 48
 
49 49
         if($showErrors !== true){
50
-           return ExitCode::OK;
50
+            return ExitCode::OK;
51 51
         }
52 52
         $this->headline('Failed for resolve', 'lightYellow');
53 53
         if(!count($service->errorList())){
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
         $this->headline('YII-2 Code Statistic', 'lightYellow');
47 47
         $this->climate->table($summary);
48 48
 
49
-        if($showErrors !== true){
49
+        if ($showErrors !== true) {
50 50
            return ExitCode::OK;
51 51
         }
52 52
         $this->headline('Failed for resolve', 'lightYellow');
53
-        if(!count($service->errorList())){
53
+        if (!count($service->errorList())) {
54 54
             $this->climate->info('Errors not found');
55
-        }else{
55
+        } else {
56 56
             $this->climate->table($service->errorList());
57 57
         }
58 58
         return ExitCode::OK;
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
         $service = $this->module->statService;
64 64
         $statistic = $service->makeAdvansedStatistic($this->module->prepareFiles());
65 65
         $this->headline('YII-2 Code Statistic', 'lightYellow');
66
-        foreach ($statistic as $groupName =>$data){
66
+        foreach ($statistic as $groupName =>$data) {
67 67
             $this->headline($groupName, 'yellow');
68 68
             $this->climate->table($data);
69
-            if(!$this->confirm('Show next group?')){
69
+            if (!$this->confirm('Show next group?')) {
70 70
                 break;
71 71
             }
72 72
         }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                     $value = $this->wrap($value, 'light_cyan');
95 95
                 }
96 96
                 $key = $this->wrap($key, 'green');
97
-                $colorized[$i][$key] = (string)$value;
97
+                $colorized[$i][$key] = (string) $value;
98 98
             }
99 99
         }
100 100
         return $colorized;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         $this->headline('Failed for resolve', 'lightYellow');
53 53
         if(!count($service->errorList())){
54 54
             $this->climate->info('Errors not found');
55
-        }else{
55
+        } else{
56 56
             $this->climate->table($service->errorList());
57 57
         }
58 58
         return ExitCode::OK;
Please login to merge, or discard this patch.