Completed
Push — master ( a105be...6f69ce )
by Jakub
02:43
created
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
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
       $path = str_replace($this->source, "", $asset);
186 186
       $target = "$this->output$path";
187 187
       FileSystem::copy($asset, $target);
188
-      echo "Copied $path";
188
+      echo "copied $path";
189 189
     }
190 190
   }
191 191
   
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
       $basename = $file->getBasename(".md") . ".html";
226 226
       $filename = "$this->output$path/$basename";
227 227
       FileSystem::write($filename, $html);
228
-      echo "Created $path/$basename\n";
228
+      echo "created $path/$basename\n";
229 229
       $this->onCreatePage($html, $this, $file->getRealPath());
230 230
     }
231 231
     $this->onAfterGenerate();
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 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
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     return str_replace(".md", ".neon", $filename);
105 105
   }
106 106
   
107
-  protected function getMeta(string $filename, string &$html): array {
107
+  protected function getMeta(string $filename, string & $html): array {
108 108
     $resolver = $this->createMetaResolver();
109 109
     $metaFilename = $this->getMetafileName($filename);
110 110
     $meta = [];
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     }
126 126
   }
127 127
   
128
-  protected function normalizeTitle(array &$meta, string &$html, string $filename): void {
128
+  protected function normalizeTitle(array &$meta, string & $html, string $filename): void {
129 129
     if(strlen($meta["title"]) === 0) {
130 130
       unset($meta["title"]);
131 131
       $html = str_replace("
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     });
140 140
   }
141 141
   
142
-  protected function normalizeStyles(array &$meta, string &$html, string $filename): void {
142
+  protected function normalizeStyles(array &$meta, string & $html, string $filename): void {
143 143
     $basePath = dirname($filename);
144 144
     $this->removeInvalidFiles($meta["styles"], $basePath);
145 145
     if(count($meta["styles"]) === 0) {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     $meta["styles"] = implode("\n  ", $meta["styles"]);
156 156
   }
157 157
   
158
-  protected function normalizeScripts(array &$meta, string &$html, string $filename): void {
158
+  protected function normalizeScripts(array &$meta, string & $html, string $filename): void {
159 159
     $basePath = dirname($filename);
160 160
     $this->removeInvalidFiles($meta["scripts"], $basePath);
161 161
     if(count($meta["scripts"]) === 0) {
Please login to merge, or discard this patch.
bin/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.