Completed
Push — master ( d5a64d...c77a0c )
by Neomerx
01:57
created
src/Adapters/PaginationStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * @inheritdoc
64 64
      */
65
-    public function parseParameters(?array $parameters): array
65
+    public function parseParameters(? array $parameters) : array
66 66
     {
67 67
         if ($parameters === null) {
68 68
             return [0, $this->getDefaultPageSize()];
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             0,
76 76
             PHP_INT_MAX
77 77
         );
78
-        $size   = $this->getValue(
78
+        $size = $this->getValue(
79 79
             $parameters,
80 80
             static::PARAM_PAGING_LIMIT,
81 81
             $this->getDefaultPageSize(),
Please login to merge, or discard this patch.
src/Encoder/Encoder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
         parse_str($this->getOriginalUri()->getQuery(), $queryParams);
127 127
 
128
-        return function ($offset) use ($pageSize, $queryParams) {
128
+        return function($offset) use ($pageSize, $queryParams) {
129 129
             $paramsWithPaging = array_merge($queryParams, [
130 130
                 QueryParametersParserInterface::PARAM_PAGE => [
131 131
                     PaginationStrategyInterface::PARAM_PAGING_OFFSET => $offset,
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                 ],
134 134
             ]);
135 135
             $newUri           = $this->getOriginalUri()->withQuery(http_build_query($paramsWithPaging));
136
-            $fullUrl          = (string)$newUri;
136
+            $fullUrl          = (string) $newUri;
137 137
             $link             = $this->getFactory()->createLink($fullUrl, null, true);
138 138
 
139 139
             return $link;
Please login to merge, or discard this patch.
src/Schema/Schema.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -212,12 +212,12 @@
 block discarded – undo
212 212
             return [static::DATA => $data->getData()];
213 213
         }
214 214
 
215
-        $buildUrl = function ($offset) use ($data, $uri) {
215
+        $buildUrl = function($offset) use ($data, $uri) {
216 216
             $paramsWithPaging = [
217 217
                 PaginationStrategyInterface::PARAM_PAGING_OFFSET => $offset,
218 218
                 PaginationStrategyInterface::PARAM_PAGING_LIMIT  => $data->getLimit(),
219 219
             ];
220
-            $fullUrl          = $uri . '?' . http_build_query($paramsWithPaging);
220
+            $fullUrl = $uri.'?'.http_build_query($paramsWithPaging);
221 221
 
222 222
             return $fullUrl;
223 223
         };
Please login to merge, or discard this patch.