@@ -189,7 +189,7 @@ |
||
189 | 189 | $oldContent = $dom->saveHTML($link); |
190 | 190 | $needsUpdate = false; |
191 | 191 | $target = $link->getAttribute("href"); |
192 | - $target = dirname($filename) . "/" . $target; |
|
192 | + $target = dirname($filename) . "/" . $target; |
|
193 | 193 | foreach($this->filesToProcess as $file) { |
194 | 194 | if($target === $file->getRealPath() AND Strings::endsWith($target, ".md")) { |
195 | 195 | $needsUpdate = true; |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | |
160 | 160 | protected function addAsset(string $asset): void { |
161 | 161 | $asset = realpath($asset); |
162 | - if(is_string($asset) AND !in_array($asset, $this->assets, true)) { |
|
162 | + if(is_string($asset) and !in_array($asset, $this->assets, true)) { |
|
163 | 163 | $this->assets[] = $asset; |
164 | 164 | } |
165 | 165 | } |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | $target = $link->getAttribute("href"); |
226 | 226 | $target = dirname($filename) . "/" . $target; |
227 | 227 | foreach($this->filesToProcess as $file) { |
228 | - if($target === $file->getRealPath() AND Strings::endsWith($target, ".md")) { |
|
228 | + if($target === $file->getRealPath() and Strings::endsWith($target, ".md")) { |
|
229 | 229 | $needsUpdate = true; |
230 | 230 | continue; |
231 | 231 | } |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | $path = str_replace($this->source, "", $asset); |
279 | 279 | $target = "$this->output$path"; |
280 | 280 | FileSystem::copy($asset, $target); |
281 | - echo "Copied $path"; |
|
281 | + echo "copied $path"; |
|
282 | 282 | } |
283 | 283 | } |
284 | 284 | |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | $basename = $file->getBasename(".md") . ".html"; |
314 | 314 | $filename = "$this->output$path/$basename"; |
315 | 315 | FileSystem::write($filename, $html); |
316 | - echo "Created $path/$basename\n"; |
|
316 | + echo "created $path/$basename\n"; |
|
317 | 317 | $this->onCreatePage($html, $this, $file->getRealPath()); |
318 | 318 | } |
319 | 319 | $this->onAfterGenerate(); |
@@ -5,7 +5,7 @@ |
||
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 | $recursionLimit--; |
10 | 10 | if($recursionLimit < 1) { |
11 | 11 | throw new \Exception("Cannot find vendor directory."); |