Passed
Push — master ( c279c2...530e9f )
by Jakub
01:57
created
src/Generator.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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.");
Please login to merge, or discard this patch.