Passed
Push — master ( fdab45...d30618 )
by Yuichi
02:27
created
src/Console/ValiableImportCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     protected $valiable;
14 14
     protected $filesystem;
15 15
 
16
-    public function __construct(Valiable $valiable,Filesystem $filesystem)
16
+    public function __construct(Valiable $valiable, Filesystem $filesystem)
17 17
     {
18 18
         $this->valiable = $valiable;
19 19
         $this->filesystem = $filesystem;
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
25 25
         $path = storage_path('app/sonar_valiables');
26 26
         $files = $this->filesystem->allFiles($path);
27 27
 
28
-        if ( is_array($files) === false || count($files) == 0 ) {
28
+        if (is_array($files) === false || count($files) == 0) {
29 29
             throw new \Exception('ファイルが見つかりません。[' . $path . ']');
30 30
         }
31
-        foreach ( $files as $rec ) {
32
-            if ( preg_match("/\.yml$/",$rec->getPathname()) ) {
31
+        foreach ($files as $rec) {
32
+            if (preg_match("/\.yml$/", $rec->getPathname())) {
33 33
                 $this->valiable->importYaml($this->filesystem->get($rec->getPathname()));
34 34
             }
35 35
         }
Please login to merge, or discard this patch.