Completed
Push — master ( 613a97...7ff9ca )
by Jakub
01:55
created
src/Generator.php 2 patches
Spacing   +5 added lines, -5 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
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     return $resolver;
94 94
   }
95 95
   
96
-  protected function getMeta(string $filename, string &$html): array {
96
+  protected function getMeta(string $filename, string & $html): array {
97 97
     $resolver = $this->createMetaResolver();
98 98
     $metaFilename = str_replace(".md", ".neon", $filename);
99 99
     $meta = [];
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     }
115 115
   }
116 116
   
117
-  protected function normalizeTitle(array &$meta, string &$html, string $filename): void {
117
+  protected function normalizeTitle(array &$meta, string & $html, string $filename): void {
118 118
     if(strlen($meta["title"]) === 0) {
119 119
       unset($meta["title"]);
120 120
       $html = str_replace("
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     }
123 123
   }
124 124
   
125
-  protected function normalizeStyles(array &$meta, string &$html, string $filename): void {
125
+  protected function normalizeStyles(array &$meta, string & $html, string $filename): void {
126 126
     $basePath = dirname($filename);
127 127
     $meta["styles"] = array_filter($meta["styles"], function($value) use($basePath) {
128 128
       return file_exists("$basePath/$value");
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     $meta["styles"] = implode("\n  ", $meta["styles"]);
141 141
   }
142 142
   
143
-  protected function normalizeScripts(array &$meta, string &$html, string $filename): void {
143
+  protected function normalizeScripts(array &$meta, string & $html, string $filename): void {
144 144
     $basePath = dirname($filename);
145 145
     $meta["scripts"] = array_filter($meta["scripts"], function($value) use($basePath) {
146 146
       return file_exists("$basePath/$value");
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
       $path = str_replace($this->source, "", $asset);
186 186
       $target = "$this->output$path";
187 187
       FileSystem::copy($asset, $target);
188
-      echo "Copied $path";
188
+      echo "copied $path";
189 189
     }
190 190
   }
191 191
   
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
       $basename = $file->getBasename(".md") . ".html";
226 226
       $filename = "$this->output$path/$basename";
227 227
       FileSystem::write($filename, $html);
228
-      echo "Created $path/$basename\n";
228
+      echo "created $path/$basename\n";
229 229
       $this->onCreatePage($html, $this, $file->getRealPath());
230 230
     }
231 231
     $this->onAfterGenerate();
Please login to merge, or discard this patch.