@@ -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; |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | $target = $link->getAttribute("href"); |
192 | 192 | $target = dirname($filename) . "/" . $target; |
193 | 193 | foreach($this->filesToProcess as $file) { |
194 | - if($target === $file->getRealPath() AND Strings::endsWith($target, ".md")) { |
|
194 | + if($target === $file->getRealPath() and Strings::endsWith($target, ".md")) { |
|
195 | 195 | $needsUpdate = true; |
196 | 196 | continue; |
197 | 197 | } |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | $path = str_replace($this->source, "", $asset); |
245 | 245 | $target = "$this->output$path"; |
246 | 246 | FileSystem::copy($asset, $target); |
247 | - echo "Copied $path"; |
|
247 | + echo "copied $path"; |
|
248 | 248 | } |
249 | 249 | } |
250 | 250 | |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | $basename = $file->getBasename(".md") . ".html"; |
280 | 280 | $filename = "$this->output$path/$basename"; |
281 | 281 | FileSystem::write($filename, $html); |
282 | - echo "Created $path/$basename\n"; |
|
282 | + echo "created $path/$basename\n"; |
|
283 | 283 | $this->onCreatePage($html, $this, $file->getRealPath()); |
284 | 284 | } |
285 | 285 | $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."); |