Passed
Pull Request — master (#171)
by Alex
04:02
created
src/Serialisers/IronicSerialiser.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         $targClass = $resourceType->getInstanceType()->getName();
184 184
         if (!($entryObject->results instanceof $targClass)) {
185 185
             $msg = 'Object being serialised not instance of expected class, '
186
-                   . $targClass . ', is actually ' . $payloadClass;
186
+                    . $targClass . ', is actually ' . $payloadClass;
187 187
             throw new InvalidOperationException($msg);
188 188
         }
189 189
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
             if (!(ResourcePropertyKind::RESOURCESET_REFERENCE == $propKind
238 238
                   || ResourcePropertyKind::RESOURCE_REFERENCE == $propKind)) {
239 239
                 $msg = '$propKind != ResourcePropertyKind::RESOURCESET_REFERENCE &&'
240
-                       .' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE';
240
+                        .' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE';
241 241
                 throw new InvalidOperationException($msg);
242 242
             }
243 243
             $propTail = ResourcePropertyKind::RESOURCE_REFERENCE == $propKind ? 'entry' : 'feed';
@@ -822,10 +822,10 @@  discard block
 block discarded – undo
822 822
     {
823 823
         $queryParameterString = null;
824 824
         foreach ([ODataConstants::HTTPQUERY_STRING_FILTER,
825
-                     ODataConstants::HTTPQUERY_STRING_EXPAND,
826
-                     ODataConstants::HTTPQUERY_STRING_ORDERBY,
827
-                     ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
828
-                     ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) {
825
+                        ODataConstants::HTTPQUERY_STRING_EXPAND,
826
+                        ODataConstants::HTTPQUERY_STRING_ORDERBY,
827
+                        ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
828
+                        ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) {
829 829
             $value = $this->getService()->getHost()->getQueryStringItem($queryOption);
830 830
             if (null !== $value) {
831 831
                 if (null !== $queryParameterString) {
@@ -1009,7 +1009,7 @@  discard block
 block discarded – undo
1009 1009
         $typeKind = $resourceType->getResourceTypeKind();
1010 1010
         if (!(ResourceTypeKind::PRIMITIVE() == $typeKind || ResourceTypeKind::COMPLEX() == $typeKind)) {
1011 1011
             $msg = '$bagItemResourceTypeKind != ResourceTypeKind::PRIMITIVE'
1012
-                   .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX';
1012
+                    .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX';
1013 1013
             throw new InvalidOperationException($msg);
1014 1014
         }
1015 1015
         if (null == $result) {
Please login to merge, or discard this patch.
src/Models/MetadataTrait.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -244,17 +244,17 @@
 block discarded – undo
244 244
                             throw new InvalidOperationException($msg);
245 245
                         }
246 246
                         foreach ([
247
-                                     'hasMany',
248
-                                     'hasManyThrough',
249
-                                     'belongsToMany',
250
-                                     'hasOne',
251
-                                     'belongsTo',
252
-                                     'morphOne',
253
-                                     'morphTo',
254
-                                     'morphMany',
255
-                                     'morphToMany',
256
-                                     'morphedByMany'
257
-                                 ] as $relation) {
247
+                                        'hasMany',
248
+                                        'hasManyThrough',
249
+                                        'belongsToMany',
250
+                                        'hasOne',
251
+                                        'belongsTo',
252
+                                        'morphOne',
253
+                                        'morphTo',
254
+                                        'morphMany',
255
+                                        'morphToMany',
256
+                                        'morphedByMany'
257
+                                    ] as $relation) {
258 258
                             $search = '$this->' . $relation . '(';
259 259
                             if (stripos(/** @scrutinizer ignore-type */$code, $search)) {
260 260
                                 //Resolve the relation's model to a Relation object.
Please login to merge, or discard this patch.
src/Models/MetadataGubbinsHolder.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
             $others = $this->getRelationsByRelationName($className, $relName);
71 71
             if ($stub instanceof AssociationStubMonomorphic) {
72 72
                 $msg = 'Monomorphic relation stub on ' . $className . ' ' . $relName
73
-                       . ' should point to at most 1 other stub';
73
+                        . ' should point to at most 1 other stub';
74 74
                 if (!(1 >= count($others))) {
75 75
                     throw new InvalidOperationException($msg);
76 76
                 }
Please login to merge, or discard this patch.