@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\SiteGenerator; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\SiteGenerator; |
5 | 5 |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * @param string $source |
49 | 49 | */ |
50 | 50 | function setSource(string $source) { |
51 | - if(is_string($source) AND is_dir($source)) { |
|
51 | + if(is_string($source) and is_dir($source)) { |
|
52 | 52 | $this->source = realpath($source); |
53 | 53 | } |
54 | 54 | } |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $html = $this->createHtml($file->getRealPath()); |
128 | 128 | $filename = "$this->output$path/{$file->getBasename(".md")}.html"; |
129 | 129 | FileSystem::write($filename, $html); |
130 | - echo "Created $path/{$file->getBasename(".md")}.html\n"; |
|
130 | + echo "created $path/{$file->getBasename(".md")}.html\n"; |
|
131 | 131 | } |
132 | 132 | } |
133 | 133 | } |
@@ -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 | |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | */ |
9 | 9 | function findVendorDirectory(): string { |
10 | 10 | $recursionLimit = 10; |
11 | - $findVendor = function ($dirName = "vendor/bin", $dir = __DIR__) use (&$findVendor, &$recursionLimit) { |
|
11 | + $findVendor = function($dirName = "vendor/bin", $dir = __DIR__) use (&$findVendor, &$recursionLimit) { |
|
12 | 12 | if(!$recursionLimit--) { |
13 | 13 | throw new \Exception("Cannot find vendor directory."); |
14 | 14 | } |