Passed
Push — master ( 42c63f...308939 )
by Jakub
01:44
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
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     }
85 85
   }
86 86
   
87
-  protected function processAssets(array &$meta, string &$html, string $basePath): void {
87
+  protected function processAssets(array &$meta, string & $html, string $basePath): void {
88 88
     $meta["styles"] = array_filter($meta["styles"], function($value) use($basePath) {
89 89
       return file_exists("$basePath/$value");
90 90
     });
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
       $html = str_replace("
102 102
   %%scripts%%", "", $html);
103 103
     }
104
-    if(!isset($meta["styles"]) AND !isset($meta["scripts"])) {
104
+    if(!isset($meta["styles"]) and !isset($meta["scripts"])) {
105 105
       return;
106 106
     }
107 107
     if(isset($meta["styles"])) {
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
       $path = str_replace($this->source, "", $asset);
148 148
       $target = "$this->output$path";
149 149
       FileSystem::copy($asset, $target);
150
-      echo "Copied $path";
150
+      echo "copied $path";
151 151
     }
152 152
   }
153 153
   
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
       $basename = $file->getBasename(".md") . ".html";
168 168
       $filename = "$this->output$path/$basename";
169 169
       FileSystem::write($filename, $html);
170
-      echo "Created $path/$basename\n";
170
+      echo "created $path/$basename\n";
171 171
     }
172 172
     $this->copyAssets();
173 173
   }
Please login to merge, or discard this patch.