Passed
Push — master ( e5a8ff...ef2528 )
by Jakub
01:58
created
src/Generator.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
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.