@@ -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 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | } |
85 | 85 | } |
86 | 86 | |
87 | - protected function processAssets(array &$meta, string &$html, string $basePath): void { |
|
87 | + protected function processAssets(array &$meta, string & $html, string $basePath): void { |
|
88 | 88 | $meta["styles"] = array_filter($meta["styles"], function($value) use($basePath) { |
89 | 89 | return file_exists("$basePath/$value"); |
90 | 90 | }); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $html = str_replace(" |
102 | 102 | %%scripts%%", "", $html); |
103 | 103 | } |
104 | - if(!isset($meta["styles"]) AND !isset($meta["scripts"])) { |
|
104 | + if(!isset($meta["styles"]) and !isset($meta["scripts"])) { |
|
105 | 105 | return; |
106 | 106 | } |
107 | 107 | if(isset($meta["styles"])) { |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | $path = str_replace($this->source, "", $asset); |
148 | 148 | $target = "$this->output$path"; |
149 | 149 | FileSystem::copy($asset, $target); |
150 | - echo "Copied $path"; |
|
150 | + echo "copied $path"; |
|
151 | 151 | } |
152 | 152 | } |
153 | 153 | |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $basename = $file->getBasename(".md") . ".html"; |
168 | 168 | $filename = "$this->output$path/$basename"; |
169 | 169 | FileSystem::write($filename, $html); |
170 | - echo "Created $path/$basename\n"; |
|
170 | + echo "created $path/$basename\n"; |
|
171 | 171 | } |
172 | 172 | $this->copyAssets(); |
173 | 173 | } |