Completed
Push — master ( d6283a...7e7429 )
by Jakub
01:47
created
src/generate-site.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\SiteGenerator;
5 5
 
Please login to merge, or discard this patch.
src/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Generator.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\SiteGenerator;
5 5
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     }
95 95
   }
96 96
   
97
-  protected function processAssets(array &$meta, string &$html, string $basePath): void {
97
+  protected function processAssets(array &$meta, string & $html, string $basePath): void {
98 98
     foreach($meta["styles"] as $index => $style) {
99 99
       if(!file_exists("$basePath/$style")) {
100 100
         unset($meta["styles"][$index]);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
       $html = str_replace("
108 108
   %%scripts%%", "", $html);
109 109
     }
110
-    if(!isset($meta["styles"]) AND !isset($meta["scripts"])) {
110
+    if(!isset($meta["styles"]) and !isset($meta["scripts"])) {
111 111
       return;
112 112
     }
113 113
     if(isset($meta["styles"])) {
@@ -164,13 +164,13 @@  discard block
 block discarded – undo
164 164
       $html = $this->createHtml($file->getRealPath());
165 165
       $filename = "$this->output$path/{$file->getBasename(".md")}.html";
166 166
       FileSystem::write($filename, $html);
167
-      echo "Created $path/{$file->getBasename(".md")}.html\n";
167
+      echo "created $path/{$file->getBasename(".md")}.html\n";
168 168
     }
169 169
     foreach($this->assets as $asset) {
170 170
       $path = str_replace($this->source, "", $asset);
171 171
       $target = "$this->output$path";
172 172
       FileSystem::copy($asset, $target);
173
-      echo "Copied $path";
173
+      echo "copied $path";
174 174
     }
175 175
   }
176 176
 }
Please login to merge, or discard this patch.