Passed
Pull Request — master (#198)
by Alex
06:29
created
src/Serialisers/SerialiseDepWrapperTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,8 +188,8 @@
 block discarded – undo
188 188
      */
189 189
     protected function updateLightStack(int $newCount): void
190 190
     {
191
-        $this->lightStack[$newCount - 1]['count']--;
192
-        if (0 == $this->lightStack[$newCount - 1]['count']) {
191
+        $this->lightStack[$newCount-1]['count']--;
192
+        if (0 == $this->lightStack[$newCount-1]['count']) {
193 193
             array_pop($this->lightStack);
194 194
         }
195 195
     }
Please login to merge, or discard this patch.
src/Models/ObjectMap/Entities/Associations/AssociationStubFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -226,10 +226,10 @@
 block discarded – undo
226 226
     /** @var array<string, array> */
227 227
     private static $fieldOrderCache = [
228 228
         'BelongsTo' => ['foreignKey', 'ownerKey'],
229
-        'BelongsToMany' => ['parentKey','foreignPivotKey','relatedPivotKey','relatedKey'],
230
-        'HasOneOrMany' => ['localKey', 'foreignKey' ],
229
+        'BelongsToMany' => ['parentKey', 'foreignPivotKey', 'relatedPivotKey', 'relatedKey'],
230
+        'HasOneOrMany' => ['localKey', 'foreignKey'],
231 231
         'HasManyThrough' => ['localKey', 'firstKey', 'secondLocalKey', 'secondKey'],
232
-        'MorphToMany' => ['parentKey','foreignPivotKey','morphType', 'relatedPivotKey','relatedKey'],
232
+        'MorphToMany' => ['parentKey', 'foreignPivotKey', 'morphType', 'relatedPivotKey', 'relatedKey'],
233 233
         'MorphTo' => ['foreignKey', 'morphType', 'ownerKey'],
234 234
         'MorphOneOrMany' => ['localKey', 'morphType', 'foreignKey'],
235 235
     ];
Please login to merge, or discard this patch.
src/Query/LaravelExpressionProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         };
59 59
         $this->functionDescriptionParsers[ODataConstants::STRFUN_ENDSWITH] = function ($params) {
60 60
             return '(strcmp(substr(' . $params[0] . ', strlen(' . $params[0] . ') - strlen(' . $params[1] . ')), '
61
-                   . $params[1] . ') === 0)';
61
+                    . $params[1] . ') === 0)';
62 62
         };
63 63
         $this->functionDescriptionParsers[ODataConstants::STRFUN_INDEXOF] = function ($params) {
64 64
             return 'strpos(' . $params[0] . ', ' . $params[1] . ')';
Please login to merge, or discard this patch.
src/Query/LaravelReadQueryUtilityTrait.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
         $values     = $skipToken->getOrderByKeysInToken();
41 41
         $numValues  = count($values);
42 42
         if ($numValues != count($segments)) {
43
-            $msg = 'Expected ' . count($segments) . ', got '.$numValues;
43
+            $msg = 'Expected ' . count($segments) . ', got ' . $numValues;
44 44
             throw new InvalidOperationException($msg);
45 45
         }
46 46
 
Please login to merge, or discard this patch.
src/Models/ObjectMap/Entities/EntityGubbins.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,13 +122,13 @@  discard block
 block discarded – undo
122 122
     public function setFields(array $fields): void
123 123
     {
124 124
         if (0 == count($fields)) {
125
-            $msg = 'Fields array must not be empty for '. $this->getClassName();
125
+            $msg = 'Fields array must not be empty for ' . $this->getClassName();
126 126
             throw new \Exception($msg);
127 127
         }
128 128
         $keys = [];
129 129
         foreach ($fields as $propName => $field) {
130 130
             if (!$field instanceof EntityField) {
131
-                $msg = 'Fields array must only have EntityField objects for '. $this->getClassName();
131
+                $msg = 'Fields array must only have EntityField objects for ' . $this->getClassName();
132 132
                 throw new \Exception($msg);
133 133
             }
134 134
             if ($field->getIsKeyField()) {
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             }
137 137
         }
138 138
         if (0 == count($keys)) {
139
-            $msg = 'No key field supplied in fields array for '. $this->getClassName();
139
+            $msg = 'No key field supplied in fields array for ' . $this->getClassName();
140 140
             throw new \Exception($msg);
141 141
         }
142 142
         $this->fields    = $fields;
Please login to merge, or discard this patch.
src/Providers/MetadataProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,13 +135,13 @@
 block discarded – undo
135 135
             $entity->setOdataResourceType($entityType);
136 136
             $this->implementProperties($entity);
137 137
             $meta->addResourceSet($pluralName, $entityType);
138
-            $meta->oDataEntityMap[$className] = $meta->oDataEntityMap[$namespace.$entityName];
138
+            $meta->oDataEntityMap[$className] = $meta->oDataEntityMap[$namespace . $entityName];
139 139
         }
140 140
         $metaCount   = count($meta->oDataEntityMap);
141 141
         $entityCount = count($entities);
142 142
         $expected    = 2 * $entityCount;
143 143
         if ($metaCount != $expected) {
144
-            $msg = 'Expected ' . $expected . ' items, actually got '.$metaCount;
144
+            $msg = 'Expected ' . $expected . ' items, actually got ' . $metaCount;
145 145
             throw new InvalidOperationException($msg);
146 146
         }
147 147
 
Please login to merge, or discard this patch.
src/Serialisers/SerialiserLowLevelWriters.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         $kVal     = $typeKind;
72 72
         if (!(ResourceTypeKind::PRIMITIVE() == $kVal || ResourceTypeKind::COMPLEX() == $kVal)) {
73 73
             $msg = '$bagItemResourceTypeKind != ResourceTypeKind::PRIMITIVE'
74
-                   . ' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX';
74
+                    . ' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX';
75 75
             throw new InvalidOperationException($msg);
76 76
         }
77 77
         if (null == $result) {
Please login to merge, or discard this patch.