@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\SiteGenerator; |
| 5 | 5 | |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\SiteGenerator; |
| 5 | 5 | |
| 6 | 6 | function findVendorDirectory(): string { |
| 7 | 7 | $recursionLimit = 10; |
| 8 | - $findVendor = function ($dirName = "vendor/bin", $dir = __DIR__) use (&$findVendor, &$recursionLimit) { |
|
| 8 | + $findVendor = function($dirName = "vendor/bin", $dir = __DIR__) use (&$findVendor, &$recursionLimit) { |
|
| 9 | 9 | if(!$recursionLimit--) { |
| 10 | 10 | throw new \Exception("Cannot find vendor directory."); |
| 11 | 11 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\SiteGenerator; |
| 5 | 5 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | } |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - protected function processAssets(array &$meta, string &$html, string $basePath): void { |
|
| 97 | + protected function processAssets(array &$meta, string & $html, string $basePath): void { |
|
| 98 | 98 | foreach($meta["styles"] as $index => $style) { |
| 99 | 99 | if(!file_exists("$basePath/$style")) { |
| 100 | 100 | unset($meta["styles"][$index]); |