@@ -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]); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | public function setSource(string $source) { |
| 48 | - if(is_string($source) AND is_dir($source)) { |
|
| 48 | + if(is_string($source) and is_dir($source)) { |
|
| 49 | 49 | $this->source = realpath($source); |
| 50 | 50 | } |
| 51 | 51 | } |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $html = str_replace(" |
| 118 | 118 | %%scripts%%", "", $html); |
| 119 | 119 | } |
| 120 | - if(!isset($meta["styles"]) AND !isset($meta["scripts"])) { |
|
| 120 | + if(!isset($meta["styles"]) and !isset($meta["scripts"])) { |
|
| 121 | 121 | return; |
| 122 | 122 | } |
| 123 | 123 | if(isset($meta["styles"])) { |
@@ -174,13 +174,13 @@ discard block |
||
| 174 | 174 | $html = $this->createHtml($file->getRealPath()); |
| 175 | 175 | $filename = "$this->output$path/{$file->getBasename(".md")}.html"; |
| 176 | 176 | FileSystem::write($filename, $html); |
| 177 | - echo "Created $path/{$file->getBasename(".md")}.html\n"; |
|
| 177 | + echo "created $path/{$file->getBasename(".md")}.html\n"; |
|
| 178 | 178 | } |
| 179 | 179 | foreach($this->assets as $asset) { |
| 180 | 180 | $path = str_replace($this->source, "", $asset); |
| 181 | 181 | $target = "$this->output$path"; |
| 182 | 182 | FileSystem::copy($asset, $target); |
| 183 | - echo "Copied $path"; |
|
| 183 | + echo "copied $path"; |
|
| 184 | 184 | } |
| 185 | 185 | } |
| 186 | 186 | } |