Passed
Push — master ( 9e87a4...e5a8ff )
by Jakub
07:06
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/Generator.php 2 patches
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.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
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,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
 
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
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
     }
Please login to merge, or discard this patch.