@@ -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 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | return $resolver->resolve($meta); |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - protected function processAssets(array &$meta, string &$html, string $basePath): void { |
|
| 89 | + protected function processAssets(array &$meta, string & $html, string $basePath): void { |
|
| 90 | 90 | foreach($meta["styles"] as $index => $style) { |
| 91 | 91 | if(!file_exists("$basePath/$style")) { |
| 92 | 92 | unset($meta["styles"][$index]); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | public function setSource(string $source) { |
| 46 | - if(is_string($source) AND is_dir($source)) { |
|
| 46 | + if(is_string($source) and is_dir($source)) { |
|
| 47 | 47 | $this->source = realpath($source); |
| 48 | 48 | } |
| 49 | 49 | } |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $html = str_replace(" |
| 108 | 108 | %%scripts%%", "", $html); |
| 109 | 109 | } |
| 110 | - if(!count($meta["styles"]) AND !count($meta["scripts"])) { |
|
| 110 | + if(!count($meta["styles"]) and !count($meta["scripts"])) { |
|
| 111 | 111 | unset($meta["styles"]); |
| 112 | 112 | unset($meta["scripts"]); |
| 113 | 113 | return; |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | $html = $this->createHtml($file->getRealPath()); |
| 167 | 167 | $filename = "$this->output$path/{$file->getBasename(".md")}.html"; |
| 168 | 168 | FileSystem::write($filename, $html); |
| 169 | - echo "Created $path/{$file->getBasename(".md")}.html\n"; |
|
| 169 | + echo "created $path/{$file->getBasename(".md")}.html\n"; |
|
| 170 | 170 | } |
| 171 | 171 | } |
| 172 | 172 | } |