Passed
Push — master ( adb20d...30f9f9 )
by Anton
01:52 queued 12s
created
src/Serializer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -193,10 +193,10 @@  discard block
 block discarded – undo
193 193
     {
194 194
         $result = [];
195 195
         foreach (['id', 'type'] as $key) {
196
-            $getter = 'get' . ucfirst($key);
196
+            $getter = 'get'.ucfirst($key);
197 197
             $value = $identifier->$getter();
198 198
             if ($value === null || is_array($value) || (is_object($value) && !method_exists($value, '__toString'))) {
199
-                throw new InvalidValueException("The value {$key} of resource object " . get_class($identifier) . ' MUST be a string.');
199
+                throw new InvalidValueException("The value {$key} of resource object ".get_class($identifier).' MUST be a string.');
200 200
             }
201 201
             if ($key === 'type' && $this->pluralize) {
202 202
                 $value = Inflector::pluralize($value);
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
                     if (!$model instanceof ResourceInterface) {
245 245
                         continue;
246 246
                     }
247
-                    $uniqueKey = $model->getType() . '/' . $model->getId();
247
+                    $uniqueKey = $model->getType().'/'.$model->getId();
248 248
                     if (!isset($data[$uniqueKey])) {
249 249
                         $data[$uniqueKey] = $this->serializeModel($model, $inclusion[$name]);
250 250
                     }
Please login to merge, or discard this patch.
src/JsonApiParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             }
41 41
             return [];
42 42
         }
43
-        $data =  ArrayHelper::getValue($array, 'data', []);
43
+        $data = ArrayHelper::getValue($array, 'data', []);
44 44
         if (empty($data)) {
45 45
             return [];
46 46
         }
Please login to merge, or discard this patch.
src/Pagination.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     /**
23 23
      * Support `page` query parameter family
24
-    */
24
+     */
25 25
     public function init()
26 26
     {
27 27
         if ($this->params === null) {
Please login to merge, or discard this patch.