@@ -66,7 +66,7 @@ |
||
| 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); |
@@ -47,7 +47,7 @@ |
||
| 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())){ |
@@ -46,13 +46,13 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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; |
@@ -52,7 +52,7 @@ |
||
| 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; |