Passed
Pull Request — master (#181)
by Alex
05:35
created
src/Query/LaravelExpressionProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         };
55 55
         $this->functionDescriptionParsers[ODataConstants::STRFUN_ENDSWITH] = function ($params) {
56 56
             return '(strcmp(substr(' . $params[0] . ', strlen(' . $params[0] . ') - strlen(' . $params[1] . ')), '
57
-                   .$params[1] . ') === 0)';
57
+                    .$params[1] . ') === 0)';
58 58
         };
59 59
         $this->functionDescriptionParsers[ODataConstants::STRFUN_INDEXOF] = function ($params) {
60 60
             return 'strpos(' . $params[0] . ', ' . $params[1] . ')';
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.
src/Serialisers/IronicSerialiser.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
         $targClass = $resourceType->getInstanceType()->getName();
186 186
         if (!($entryObject->results instanceof $targClass)) {
187 187
             $msg = 'Object being serialised not instance of expected class, '
188
-                   . $targClass . ', is actually ' . $payloadClass;
188
+                    . $targClass . ', is actually ' . $payloadClass;
189 189
             throw new InvalidOperationException($msg);
190 190
         }
191 191
 
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
             if (!(ResourcePropertyKind::RESOURCESET_REFERENCE == $propKind
242 242
                   || ResourcePropertyKind::RESOURCE_REFERENCE == $propKind)) {
243 243
                 $msg = '$propKind != ResourcePropertyKind::RESOURCESET_REFERENCE &&'
244
-                       .' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE';
244
+                        .' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE';
245 245
                 throw new InvalidOperationException($msg);
246 246
             }
247 247
             $propTail = ResourcePropertyKind::RESOURCE_REFERENCE == $propKind ? 'entry' : 'feed';
@@ -856,10 +856,10 @@  discard block
 block discarded – undo
856 856
     {
857 857
         $queryParameterString = null;
858 858
         foreach ([ODataConstants::HTTPQUERY_STRING_FILTER,
859
-                     ODataConstants::HTTPQUERY_STRING_EXPAND,
860
-                     ODataConstants::HTTPQUERY_STRING_ORDERBY,
861
-                     ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
862
-                     ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) {
859
+                        ODataConstants::HTTPQUERY_STRING_EXPAND,
860
+                        ODataConstants::HTTPQUERY_STRING_ORDERBY,
861
+                        ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
862
+                        ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) {
863 863
             $value = $this->getService()->getHost()->getQueryStringItem($queryOption);
864 864
             if (null !== $value) {
865 865
                 if (null !== $queryParameterString) {
@@ -1060,7 +1060,7 @@  discard block
 block discarded – undo
1060 1060
         $kVal = $typeKind->getValue();
1061 1061
         if (!(ResourceTypeKind::PRIMITIVE()->getValue() == $kVal || ResourceTypeKind::COMPLEX()->getValue() == $kVal)) {
1062 1062
             $msg = '$bagItemResourceTypeKind != ResourceTypeKind::PRIMITIVE'
1063
-                   .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX';
1063
+                    .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX';
1064 1064
             throw new InvalidOperationException($msg);
1065 1065
         }
1066 1066
         if (null == $result) {
Please login to merge, or discard this patch.