Passed
Push — master ( ba77f6...229fac )
by Alex
07:41
created
src/Models/MetadataGubbinsHolder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
                     $stub = clone $this->knownSides[$knownType][$key];
136 136
                     $isMulti = ($stub->getMultiplicity()->getValue() == AssociationStubRelationType::MANY);
137 137
                     $relPolyTypeName = substr($lc->getBaseType(), strrpos($lc->getBaseType(), '\\')+1);
138
-                    $relPolyTypeName = str_plural($relPolyTypeName, $isMulti?2:1);
138
+                    $relPolyTypeName = str_plural($relPolyTypeName, $isMulti ? 2 : 1);
139 139
                     $stub->setRelationName($stub->getRelationName() . '_' . $relPolyTypeName);
140 140
                     $assoc = new AssociationMonomorphic();
141 141
                     $first = -1 === $stub->compare($lc);
Please login to merge, or discard this patch.
src/Providers/MetadataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
         $metaCount = count($meta->oDataEntityMap);
143 143
         $entityCount = count($entities);
144 144
         $expected = 2 * $entityCount;
145
-        assert($metaCount == $expected, 'Expected ' . $expected . ' items, actually got '.$metaCount);
145
+        assert($metaCount == $expected, 'Expected ' . $expected . ' items, actually got ' . $metaCount);
146 146
 
147 147
         if (0 === count($objectModel->getAssociations())) {
148 148
             return;
Please login to merge, or discard this patch.
src/Query/LaravelBulkQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     protected $query;
35 35
     protected $controllerContainer;
36 36
 
37
-    public function __construct(LaravelQuery &$query, AuthInterface $auth = null)
37
+    public function __construct(LaravelQuery & $query, AuthInterface $auth = null)
38 38
     {
39 39
         $this->auth = isset($auth) ? $auth : new NullAuthProvider();
40 40
         $this->metadataProvider = new MetadataProvider(App::make('app'));
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
@@ -119,13 +119,13 @@  discard block
 block discarded – undo
119 119
     public function setFields(array $fields)
120 120
     {
121 121
         if (0 == count($fields)) {
122
-            $msg = 'Fields array must not be empty for '.$this->getClassName();
122
+            $msg = 'Fields array must not be empty for ' . $this->getClassName();
123 123
             throw new \Exception($msg);
124 124
         }
125 125
         $keys = [];
126 126
         foreach ($fields as $propName => $field) {
127 127
             if (!$field instanceof EntityField) {
128
-                $msg = 'Fields array must only have EntityField objects for '.$this->getClassName();
128
+                $msg = 'Fields array must only have EntityField objects for ' . $this->getClassName();
129 129
                 throw new \Exception($msg);
130 130
             }
131 131
             if ($field->getIsKeyField()) {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             }
134 134
         }
135 135
         if (0 == count($keys)) {
136
-            $msg = 'No key field supplied in fields array for '.$this->getClassName();
136
+            $msg = 'No key field supplied in fields array for ' . $this->getClassName();
137 137
             throw new \Exception($msg);
138 138
         }
139 139
         $this->fields = $fields;
Please login to merge, or discard this patch.
src/Query/LaravelReadQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 foreach ($order->getSubPathSegments() as $subOrder) {
104 104
                     $subName = $subOrder->getName();
105 105
                     $subName = (self::PK == $subName) ? $keyName : $subName;
106
-                    $subName = $tableName.'.'.$subName;
106
+                    $subName = $tableName . '.' . $subName;
107 107
                     $sourceEntityInstance = $sourceEntityInstance->orderBy(
108 108
                         $subName,
109 109
                         $order->isAscending() ? 'asc' : 'desc'
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
             assert(is_string($line), 'Eager-load elements must be non-empty strings');
426 426
             $lineParts = explode('/', $line);
427 427
             $numberOfParts = count($lineParts);
428
-            for ($i = 0; $i<$numberOfParts; $i++) {
428
+            for ($i = 0; $i < $numberOfParts; $i++) {
429 429
                 $lineParts[$i] = $this->getLaravelRelationName($lineParts[$i]);
430 430
             }
431 431
             $remixLine = implode('.', $lineParts);
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
                     // so we can't bail out early
508 508
                     $rawCount += $results->count();
509 509
                     // now bolt on filtrate to accumulating result set if we haven't accumulated enough bitz
510
-                    if ($rawTop > $resultSet->count() + $skip) {
510
+                    if ($rawTop > $resultSet->count()+$skip) {
511 511
                         $resultSet = collect(array_merge($resultSet->all(), $results->all()));
512 512
                         $sliceAmount = min($skip, $resultSet->count());
513 513
                         $resultSet = $resultSet->slice($sliceAmount);
Please login to merge, or discard this patch.