@@ -13,7 +13,7 @@ discard block |
||
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 |
||
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 | } |