Passed
Pull Request — master (#25)
by Patrick
09:26
created
src/Serializer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,10 +185,10 @@  discard block
 block discarded – undo
185 185
     {
186 186
         $result = [];
187 187
         foreach (['id', 'type'] as $key) {
188
-            $getter = 'get' . ucfirst($key);
188
+            $getter = 'get'.ucfirst($key);
189 189
             $value = $identifier->$getter();
190 190
             if ($value === null || is_array($value) || (is_object($value) && !method_exists($value, '__toString'))) {
191
-                throw new InvalidValueException("The value {$key} of resource object " . get_class($identifier) . ' MUST be a string.');
191
+                throw new InvalidValueException("The value {$key} of resource object ".get_class($identifier).' MUST be a string.');
192 192
             }
193 193
             if ($key === 'type' && $this->pluralize) {
194 194
                 $value = Inflector::pluralize($value);
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
             }
217 217
             foreach ($relationship as $model) {
218 218
                 if ($model instanceof ResourceInterface) {
219
-                    $deduplicateKey = $model->getType() . '|' . $model->getId();
219
+                    $deduplicateKey = $model->getType().'|'.$model->getId();
220 220
                     if (!isset($includedObjects[$deduplicateKey])) {
221 221
                         $includedObjects[$deduplicateKey] = $this->serializeModel($model);
222 222
                     }
Please login to merge, or discard this patch.