@@ -73,7 +73,10 @@ |
||
73 | 73 | '.min.'.$this->file->getExtension() |
74 | 74 | ); |
75 | 75 | |
76 | - if (!file_exists($min_path)) return false; |
|
76 | + if (!file_exists($min_path)) |
|
77 | + { |
|
78 | + return false; |
|
79 | + } |
|
77 | 80 | |
78 | 81 | return file_get_contents($min_path); |
79 | 82 | } |
@@ -124,11 +124,20 @@ discard block |
||
124 | 124 | } |
125 | 125 | else |
126 | 126 | { |
127 | - if (!is_array($value)) $value = [$value]; |
|
127 | + if (!is_array($value)) |
|
128 | + { |
|
129 | + $value = [$value]; |
|
130 | + } |
|
128 | 131 | |
129 | - if (count($value) === 0) throw new \UnexpectedValueException; |
|
132 | + if (count($value) === 0) |
|
133 | + { |
|
134 | + throw new \UnexpectedValueException; |
|
135 | + } |
|
130 | 136 | |
131 | - if (!is_string($value[0])) throw new \UnexpectedValueException; |
|
137 | + if (!is_string($value[0])) |
|
138 | + { |
|
139 | + throw new \UnexpectedValueException; |
|
140 | + } |
|
132 | 141 | |
133 | 142 | $this->source = $value; |
134 | 143 | } |
@@ -286,7 +295,10 @@ discard block |
||
286 | 295 | */ |
287 | 296 | protected function getSourceType(SplFileInfo $file): string |
288 | 297 | { |
289 | - if ($file->isDir()) return 'folder'; |
|
298 | + if ($file->isDir()) |
|
299 | + { |
|
300 | + return 'folder'; |
|
301 | + } |
|
290 | 302 | return $file->getExtension(); |
291 | 303 | } |
292 | 304 |