Completed
Push — master ( 9f13d4...a886ae )
by Alex
38:38 queued 38:36
created
src/Serialisers/SerialiseDepWrapperTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -186,8 +186,8 @@
 block discarded – undo
186 186
      */
187 187
     protected function updateLightStack(int $newCount)
188 188
     {
189
-        $this->lightStack[$newCount - 1]['count']--;
190
-        if (0 == $this->lightStack[$newCount - 1]['count']) {
189
+        $this->lightStack[$newCount-1]['count']--;
190
+        if (0 == $this->lightStack[$newCount-1]['count']) {
191 191
             array_pop($this->lightStack);
192 192
         }
193 193
     }
Please login to merge, or discard this patch.
src/Providers/MetadataBaseProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     {
64 64
         $class = __CLASS__;
65 65
         if (!isset($classMap[$class])) {
66
-            throw new \Exception(sprintf('%s was not found in autoload class map, this usually indicates you '.
66
+            throw new \Exception(sprintf('%s was not found in autoload class map, this usually indicates you ' .
67 67
             'need to dump an optimised autoloader (`composer dump-autoload -o`)', $class));
68 68
         }
69 69
     }
Please login to merge, or discard this patch.
src/Models/MetadataTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@
 block discarded – undo
369 369
             $builder = $connect->getSchemaBuilder();
370 370
             $columns = $builder->getColumnListing($table);
371 371
 
372
-            self::$tableColumns = (array)$columns;
372
+            self::$tableColumns = (array) $columns;
373 373
         }
374 374
         return self::$tableColumns;
375 375
     }
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
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $values     = $skipToken->getOrderByKeysInToken();
38 38
         $numValues  = count($values);
39 39
         if ($numValues != count($segments)) {
40
-            $msg = 'Expected '.count($segments).', got '.$numValues;
40
+            $msg = 'Expected ' . count($segments) . ', got ' . $numValues;
41 41
             throw new InvalidOperationException($msg);
42 42
         }
43 43
 
Please login to merge, or discard this patch.
src/Query/LaravelReadQuery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
                     // so we can't bail out early
383 383
                     $rawCount += $results->count();
384 384
                     // now bolt on filtrate to accumulating result set if we haven't accumulated enough bitz
385
-                    if ($rawTop > $resultSet->count() + $skip) {
385
+                    if ($rawTop > $resultSet->count()+$skip) {
386 386
                         $resultSet = collect(array_merge($resultSet->all(), $results->all()));
387 387
                         $sliceAmount = min($skip, $resultSet->count());
388 388
                         $resultSet = $resultSet->slice($sliceAmount);
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
         if (QueryType::COUNT() == $qVal || QueryType::ENTITIES_WITH_COUNT() == $qVal) {
455 455
             $result->count = $resultCount;
456 456
         }
457
-        $hazMore         = $bulkSetCount > $skip + count($resultSet);
457
+        $hazMore         = $bulkSetCount > $skip+count($resultSet);
458 458
         $result->hasMore = $hazMore;
459 459
     }
460 460
 }
Please login to merge, or discard this patch.
src/Providers/MetadataProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     {
117 117
         /** @var SimpleMetadataProvider $meta */
118 118
         $meta      = App::make('metadata');
119
-        $namespace = $meta->getContainerNamespace().'.';
119
+        $namespace = $meta->getContainerNamespace() . '.';
120 120
 
121 121
         $entities = $objectModel->getEntities();
122 122
         foreach ($entities as $entity) {
@@ -131,13 +131,13 @@  discard block
 block discarded – undo
131 131
             $entity->setOdataResourceType($entityType);
132 132
             $this->implementProperties($entity);
133 133
             $meta->addResourceSet($pluralName, $entityType);
134
-            $meta->oDataEntityMap[$className] = $meta->oDataEntityMap[$namespace.$entityName];
134
+            $meta->oDataEntityMap[$className] = $meta->oDataEntityMap[$namespace . $entityName];
135 135
         }
136 136
         $metaCount   = count($meta->oDataEntityMap);
137 137
         $entityCount = count($entities);
138 138
         $expected    = 2 * $entityCount;
139 139
         if ($metaCount != $expected) {
140
-            $msg = 'Expected ' . $expected . ' items, actually got '.$metaCount;
140
+            $msg = 'Expected ' . $expected . ' items, actually got ' . $metaCount;
141 141
             throw new InvalidOperationException($msg);
142 142
         }
143 143
 
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
@@ -257,10 +257,10 @@
 block discarded – undo
257 257
 
258 258
     private static $fieldOrderCache = [
259 259
         'BelongsTo' => ['foreignKey', 'ownerKey'],
260
-        'BelongsToMany' => ['parentKey','foreignPivotKey','relatedPivotKey','relatedKey'],
261
-        'HasOneOrMany' => ['localKey', 'foreignKey' ],
260
+        'BelongsToMany' => ['parentKey', 'foreignPivotKey', 'relatedPivotKey', 'relatedKey'],
261
+        'HasOneOrMany' => ['localKey', 'foreignKey'],
262 262
         'HasManyThrough' => ['localKey', 'firstKey', 'secondLocalKey', 'secondKey'],
263
-        'MorphToMany' => ['parentKey','foreignPivotKey','morphType', 'relatedPivotKey','relatedKey'],
263
+        'MorphToMany' => ['parentKey', 'foreignPivotKey', 'morphType', 'relatedPivotKey', 'relatedKey'],
264 264
         'MorphTo' => ['foreignKey', 'morphType', 'ownerKey'],
265 265
         'MorphOneOrMany' => ['localKey', 'morphType', 'foreignKey'],
266 266
     ];
Please login to merge, or discard this patch.
src/Serialisers/SerialiseNextPageLinksTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
 
137 137
         $topCountValue = $this->getRequest()->getTopOptionCount();
138 138
         if (null !== $topCountValue) {
139
-            $remainingCount = $topCountValue - $this->getRequest()->getTopCount();
139
+            $remainingCount = $topCountValue-$this->getRequest()->getTopCount();
140 140
             if (0 < $remainingCount) {
141 141
                 if (null !== $queryParameterString) {
142 142
                     $queryParameterString .= '&';
Please login to merge, or discard this patch.
src/Models/ModelReflectionHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $fileName = $method->getFileName();
36 36
 
37 37
         $file = new SplFileObject($fileName);
38
-        $file->seek($method->getStartLine() - 1);
38
+        $file->seek($method->getStartLine()-1);
39 39
         $code = '';
40 40
         while ($file->key() < $method->getEndLine()) {
41 41
             $code .= $file->current();
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $code  = preg_replace('/\s\s+/', '', $code);
46 46
         $begin = strpos($code, 'function(');
47
-        $code  = substr($code, (int)$begin, strrpos($code, '}') - $begin + 1);
47
+        $code  = substr($code, (int) $begin, strrpos($code, '}')-$begin+1);
48 48
         return $code;
49 49
     }
50 50
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 ) {
85 85
                     continue;
86 86
                 }
87
-                $relationships[]= $method;
87
+                $relationships[] = $method;
88 88
             }
89 89
         }
90 90
         return $relationships;
Please login to merge, or discard this patch.