Completed
Push — master ( ef2528...a24508 )
by Jakub
01:57
created
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
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     return $resolver->resolve($meta);
87 87
   }
88 88
   
89
-  protected function processAssets(array &$meta, string &$html, string $basePath): void {
89
+  protected function processAssets(array &$meta, string & $html, string $basePath): void {
90 90
     foreach($meta["styles"] as $index => $style) {
91 91
       if(!file_exists("$basePath/$style")) {
92 92
         unset($meta["styles"][$index]);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
   }
44 44
   
45 45
   public function setSource(string $source) {
46
-    if(is_string($source) AND is_dir($source)) {
46
+    if(is_string($source) and is_dir($source)) {
47 47
       $this->source = realpath($source);
48 48
     }
49 49
   }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
       $html = str_replace("
108 108
   %%scripts%%", "", $html);
109 109
     }
110
-    if(!count($meta["styles"]) AND !count($meta["scripts"])) {
110
+    if(!count($meta["styles"]) and !count($meta["scripts"])) {
111 111
       unset($meta["styles"]);
112 112
       unset($meta["scripts"]);
113 113
       return;
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
       $html = $this->createHtml($file->getRealPath());
167 167
       $filename = "$this->output$path/{$file->getBasename(".md")}.html";
168 168
       FileSystem::write($filename, $html);
169
-      echo "Created $path/{$file->getBasename(".md")}.html\n";
169
+      echo "created $path/{$file->getBasename(".md")}.html\n";
170 170
     }
171 171
   }
172 172
 }
Please login to merge, or discard this patch.