@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | public function setSource(string $source) { |
45 | - if(is_string($source) AND is_dir($source)) { |
|
45 | + if(is_string($source) and is_dir($source)) { |
|
46 | 46 | $this->source = realpath($source); |
47 | 47 | } |
48 | 48 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $html = $this->createHtml($file->getRealPath()); |
106 | 106 | $filename = "$this->output$path/{$file->getBasename(".md")}.html"; |
107 | 107 | FileSystem::write($filename, $html); |
108 | - echo "Created $path/{$file->getBasename(".md")}.html\n"; |
|
108 | + echo "created $path/{$file->getBasename(".md")}.html\n"; |
|
109 | 109 | } |
110 | 110 | } |
111 | 111 | } |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\SiteGenerator; |
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 | if(!$recursionLimit--) { |
10 | 10 | throw new \Exception("Cannot find vendor directory."); |
11 | 11 | } |