@@ -17,17 +17,17 @@ |
||
17 | 17 | */ |
18 | 18 | public function check() |
19 | 19 | { |
20 | - $this->checkFilePresence($file =$this->getManifestFileName()); |
|
20 | + $this->checkFilePresence($file =$this->getManifestFileName()); |
|
21 | 21 | |
22 | - $loaded = $this->loadJson($file); |
|
22 | + $loaded = $this->loadJson($file); |
|
23 | 23 | |
24 | - foreach ($loaded as $item => $asset) { |
|
25 | - if (!$this->ignored($item)) { |
|
26 | - $this->checkFilePresence(base_path($this->target->assetsRoot.$asset)); |
|
27 | - } |
|
28 | - } |
|
24 | + foreach ($loaded as $item => $asset) { |
|
25 | + if (!$this->ignored($item)) { |
|
26 | + $this->checkFilePresence(base_path($this->target->assetsRoot.$asset)); |
|
27 | + } |
|
28 | + } |
|
29 | 29 | |
30 | - return $this->makeHealthyResult(); |
|
30 | + return $this->makeHealthyResult(); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function check() |
19 | 19 | { |
20 | - $this->checkFilePresence($file =$this->getManifestFileName()); |
|
20 | + $this->checkFilePresence($file = $this->getManifestFileName()); |
|
21 | 21 | |
22 | 22 | $loaded = $this->loadJson($file); |
23 | 23 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | public function checkFilePresence($fileName) |
55 | 55 | { |
56 | 56 | if (!file_exists($fileName)) { |
57 | - throw new Exception("File doesn't exist: " . $fileName); |
|
57 | + throw new Exception("File doesn't exist: ".$fileName); |
|
58 | 58 | } |
59 | 59 | } |
60 | 60 | |
@@ -68,13 +68,13 @@ discard block |
||
68 | 68 | $contents = file_get_contents($fileName); |
69 | 69 | |
70 | 70 | if (blank($fileName)) { |
71 | - throw new Exception("Manifest is empty or permission to read the file was denied: " . $fileName); |
|
71 | + throw new Exception("Manifest is empty or permission to read the file was denied: ".$fileName); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | $contents = json_decode($contents, true); |
75 | 75 | |
76 | 76 | if (json_last_error() !== \JSON_ERROR_NONE) { |
77 | - throw new Exception("Error parsing manifest: " . $fileName . ' - Error: '. $this->getJSONErrorMessage(json_last_error())); |
|
77 | + throw new Exception("Error parsing manifest: ".$fileName.' - Error: '.$this->getJSONErrorMessage(json_last_error())); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | return $contents; |