Passed
Push — develop ( c5beb1...7d7ea1 )
by Brent
06:28 queued 02:06
created
src/Stitcher/Page/Adapter/PaginationAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
     public function __construct(array $adapterConfiguration, VariableParser $variableParser)
18 18
     {
19
-        if (! $this->isValidConfiguration($adapterConfiguration)) {
19
+        if (!$this->isValidConfiguration($adapterConfiguration)) {
20 20
             throw InvalidConfiguration::invalidAdapterConfiguration('pagination', '`variable`, `parameter`, `perPage`');
21 21
         }
22 22
 
@@ -128,6 +128,6 @@  discard block
 block discarded – undo
128 128
 
129 129
     protected function createPaginatedUrl(string $pageId, int $index): string
130 130
     {
131
-        return str_replace('{' .$this->parameter. '}', "page-{$index}", $pageId);
131
+        return str_replace('{' . $this->parameter . '}', "page-{$index}", $pageId);
132 132
     }
133 133
 }
Please login to merge, or discard this patch.
src/Stitcher/Page/Adapter/CollectionAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     public function __construct(array $adapterConfiguration, VariableParser $variableParser)
17 17
     {
18
-        if (! $this->isValidConfiguration($adapterConfiguration)) {
18
+        if (!$this->isValidConfiguration($adapterConfiguration)) {
19 19
             throw InvalidConfiguration::invalidAdapterConfiguration('collection', '`variable` and `parameter`');
20 20
         }
21 21
 
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/Pageon/Config.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@
 block discarded – undo
35 35
         self::registerConfiguration($loadedConfiguration);
36 36
     }
37 37
 
38
+    /**
39
+     * @return string
40
+     */
38 41
     public static function get(string $key)
39 42
     {
40 43
         return self::$loadedConfiguration[$key] ?? null;
Please login to merge, or discard this patch.