@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | //////////////////////////////////////////////////////////////////////////////// |
3 | 3 | // __________ __ ________ __________ |
4 | 4 | // \______ \ |__ ______ / _____/ ____ _____ ______\______ \ _______ ___ |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | //////////////////////////////////////////////////////////////////////////////// |
3 | 3 | // __________ __ ________ __________ |
4 | 4 | // \______ \ |__ ______ / _____/ ____ _____ ______\______ \ _______ ___ |
@@ -207,8 +207,7 @@ discard block |
||
207 | 207 | // Plus this should error out early if we can't write to the file |
208 | 208 | if (!$result) |
209 | 209 | { |
210 | - throw new RuntimeException |
|
211 | - ( |
|
210 | + throw new RuntimeException( |
|
212 | 211 | 'We can not write to the destination file: '. |
213 | 212 | $this->destination->getPathname() |
214 | 213 | ); |
@@ -259,15 +258,13 @@ discard block |
||
259 | 258 | // Does the compiler exist |
260 | 259 | if (!class_exists($compiler_type)) |
261 | 260 | { |
262 | - throw new RuntimeException |
|
263 | - ( |
|
261 | + throw new RuntimeException( |
|
264 | 262 | 'The source file type is not supported! - ('.$file.')' |
265 | 263 | ); |
266 | 264 | } |
267 | 265 | |
268 | 266 | // Return the compiler |
269 | - return new $compiler_type |
|
270 | - ( |
|
267 | + return new $compiler_type( |
|
271 | 268 | $file, |
272 | 269 | $this->destination, |
273 | 270 | $this->debug, |
@@ -361,8 +358,7 @@ discard block |
||
361 | 358 | // Write the normal asset |
362 | 359 | if (file_put_contents($this->destination->getPathname(), $asset_contents) === false) |
363 | 360 | { |
364 | - throw new RuntimeException |
|
365 | - ( |
|
361 | + throw new RuntimeException( |
|
366 | 362 | 'Failed to write asset: '.$this->destination->getPathname() |
367 | 363 | ); |
368 | 364 | } |
@@ -379,8 +375,7 @@ discard block |
||
379 | 375 | |
380 | 376 | if (file_put_contents($gz_file_name, $gz_contents) === false) |
381 | 377 | { |
382 | - throw new RuntimeException |
|
383 | - ( |
|
378 | + throw new RuntimeException( |
|
384 | 379 | 'Failed to write gzipped version of asset: '. |
385 | 380 | $gz_file_name |
386 | 381 | ); |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | //////////////////////////////////////////////////////////////////////////////// |
3 | 3 | // __________ __ ________ __________ |
4 | 4 | // \______ \ |__ ______ / _____/ ____ _____ ______\______ \ _______ ___ |