Test Setup Failed
Push — master ( 0340bb...9dc2d5 )
by Brent
02:41
created
src/Pageon/Html/Meta/Meta.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -68,6 +68,9 @@  discard block
 block discarded – undo
68 68
         return $this;
69 69
     }
70 70
 
71
+    /**
72
+     * @param string $content
73
+     */
71 74
     public function itemprop(string $name, ?string $content) : Meta {
72 75
         if (!$content) {
73 76
             return $this;
@@ -79,6 +82,9 @@  discard block
 block discarded – undo
79 82
         return $this;
80 83
     }
81 84
 
85
+    /**
86
+     * @param string $content
87
+     */
82 88
     public function property(string $property, ?string $content) : Meta {
83 89
         if (!$content) {
84 90
             return $this;
Please login to merge, or discard this patch.
src/Stitcher/Variable/MarkdownVariable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $contents = File::read($this->unparsed);
28 28
 
29
-        if (! $contents) {
29
+        if (!$contents) {
30 30
             throw InvalidConfiguration::fileNotFound($this->unparsed);
31 31
         }
32 32
 
Please login to merge, or discard this patch.
src/Stitcher/Renderer/RendererFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     private function setTwigRule(): void
38 38
     {
39
-        $this->setRule(TwigRenderer::class, function ($value) {
39
+        $this->setRule(TwigRenderer::class, function($value) {
40 40
             if ($value === 'twig') {
41 41
                 return TwigRenderer::make($this->templateDirectory);
42 42
             }
Please login to merge, or discard this patch.
src/Stitcher/Renderer/TwigRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     {
13 13
         $fs = new Filesystem();
14 14
 
15
-        if (! $fs->exists($templateDirectory)) {
15
+        if (!$fs->exists($templateDirectory)) {
16 16
             $fs->mkdir($templateDirectory);
17 17
         }
18 18
 
Please login to merge, or discard this patch.
src/Stitcher/File.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $path = self::path($path);
29 29
 
30
-        if (! file_exists(self::path($path))) {
30
+        if (!file_exists(self::path($path))) {
31 31
             return null;
32 32
         }
33 33
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     public static function write(string $path, $content = null): void
40 40
     {
41
-        if (! self::$fs) {
41
+        if (!self::$fs) {
42 42
             self::$fs = new Filesystem();
43 43
         }
44 44
 
Please login to merge, or discard this patch.
src/Stitcher/Page/Adapter/FilterAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         array $adapterConfiguration,
20 20
         VariableParser $variableParser
21 21
     ) {
22
-        if (! $this->isValidConfiguration($adapterConfiguration)) {
22
+        if (!$this->isValidConfiguration($adapterConfiguration)) {
23 23
             throw InvalidConfiguration::invalidAdapterConfiguration('filter', '`field`: `filter`');
24 24
         }
25 25
 
Please login to merge, or discard this patch.
src/Stitcher/Page/Adapter/CollectionAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         array $adapterConfiguration,
29 29
         VariableParser $variableParser
30 30
     ) {
31
-        if (! $this->isValidConfiguration($adapterConfiguration)) {
31
+        if (!$this->isValidConfiguration($adapterConfiguration)) {
32 32
             throw InvalidCollectionAdapter::create();
33 33
         }
34 34
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
         $prev = prev($this->entries);
159 159
 
160
-        if (! $prev) {
160
+        if (!$prev) {
161 161
             reset($this->entries);
162 162
         } else {
163 163
             $browse['prev'] = $prev;
Please login to merge, or discard this patch.
src/Stitcher/Page/Adapter/PaginationAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         array $adapterConfiguration,
26 26
         VariableParser $variableParser
27 27
     ) {
28
-        if (! $this->isValidConfiguration($adapterConfiguration)) {
28
+        if (!$this->isValidConfiguration($adapterConfiguration)) {
29 29
             throw InvalidPaginationAdapter::create();
30 30
         }
31 31
 
@@ -150,6 +150,6 @@  discard block
 block discarded – undo
150 150
 
151 151
     protected function createPaginatedUrl(string $pageId, int $index): string
152 152
     {
153
-        return str_replace('{' .$this->parameter. '}', $index, $pageId);
153
+        return str_replace('{' . $this->parameter . '}', $index, $pageId);
154 154
     }
155 155
 }
Please login to merge, or discard this patch.
src/Stitcher/Task/PartialParse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         $filteredConfiguration = array_filter(
38 38
             $parsedConfiguration,
39
-            function ($key) use ($matchingRoute) {
39
+            function($key) use ($matchingRoute) {
40 40
                 return $key === $matchingRoute['_route'];
41 41
             }, ARRAY_FILTER_USE_KEY
42 42
         );
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     {
64 64
         $configurationFile = File::read($this->configurationFile);
65 65
 
66
-        if (! $configurationFile) {
66
+        if (!$configurationFile) {
67 67
             throw InvalidConfiguration::siteConfigurationFileNotFound();
68 68
         }
69 69
 
Please login to merge, or discard this patch.