Completed
Push — master ( cf0859...e578ec )
by Insolita
01:34
created
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.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $this->headline('Failed for resolve', 'lightYellow');
62 62
         if(!count($service->errorList())){
63 63
             $this->climate->info('Errors not found');
64
-        }else{
64
+        } else{
65 65
             Output::arrayList($service->errorList());
66 66
         }
67 67
         return ExitCode::OK;
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -64,13 +64,13 @@  discard block
 block discarded – undo
64 64
         $this->headline('YII-2 Code Statistic', 'lightYellow');
65 65
         $this->climate->table($summary);
66 66
 
67
-        if($showErrors !== true){
67
+        if ($showErrors !== true) {
68 68
            return ExitCode::OK;
69 69
         }
70 70
         $this->headline('Failed for resolve', 'lightYellow');
71
-        if(!count($service->errorList())){
71
+        if (!count($service->errorList())) {
72 72
             $this->climate->info('Errors not found');
73
-        }else{
73
+        } else {
74 74
             Output::arrayList($service->errorList());
75 75
         }
76 76
         return ExitCode::OK;
@@ -127,8 +127,8 @@  discard block
 block discarded – undo
127 127
     {
128 128
         $service = $this->module->statService;
129 129
         $dir = \Yii::getAlias($dir);
130
-        if(!is_dir($dir)){
131
-            $this->stderr('Directory not found by path '.$dir);
130
+        if (!is_dir($dir)) {
131
+            $this->stderr('Directory not found by path ' . $dir);
132 132
             return ExitCode::UNSPECIFIED_ERROR;
133 133
         }
134 134
         $statistic = $service->makeCommonStatistic(FileHelper::findFiles($dir, [
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
     {
151 151
         $service = $this->module->statService;
152 152
         $filePath = \Yii::getAlias($filePath);
153
-        if(!file_exists($filePath)){
154
-            $this->stderr('File not found by path '.$filePath);
153
+        if (!file_exists($filePath)) {
154
+            $this->stderr('File not found by path ' . $filePath);
155 155
             return ExitCode::UNSPECIFIED_ERROR;
156 156
         }
157 157
         $statistic = $service->makeCommonStatistic([$filePath], $this->module->metrics);
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
                     $value = $this->wrap($value, 'light_cyan');
199 199
                 }
200 200
                 $key = $this->wrap($key, 'green');
201
-                $colorized[$i][$key] = (string)$value;
201
+                $colorized[$i][$key] = (string) $value;
202 202
             }
203 203
         }
204 204
         return $colorized;
Please login to merge, or discard this patch.
src/lib/CodestatService.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -234,14 +234,14 @@
 block discarded – undo
234 234
     public function classGenerator(array $files)
235 235
     {
236 236
         foreach ($files as $filePath) {
237
-            try{
237
+            try {
238 238
                 $className = $this->classDetector->resolveClassName($filePath);
239 239
                 if ($className === null) {
240 240
                     ++$this->nonClasses;
241 241
                 } else {
242 242
                     yield $className;
243 243
                 }
244
-            }catch (\Throwable $e){
244
+            } catch (\Throwable $e) {
245 245
                 $this->withErrors[] = $e->getMessage();
246 246
             }
247 247
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@
 block discarded – undo
241 241
                 } else {
242 242
                     yield $className;
243 243
                 }
244
-            }catch (\Throwable $e){
244
+            } catch (\Throwable $e){
245 245
                 $this->withErrors[] = $e->getMessage();
246 246
             }
247 247
         }
Please login to merge, or discard this patch.