Passed
Pull Request — master (#156)
by Alex
06:36
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/Query/LaravelReadQuery.php 1 patch
Spacing   +2 added lines, -2 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'
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
             assert(is_string($line), 'Eager-load elements must be non-empty strings');
492 492
             $lineParts = explode('/', $line);
493 493
             $numberOfParts = count($lineParts);
494
-            for ($i = 0; $i<$numberOfParts; $i++) {
494
+            for ($i = 0; $i < $numberOfParts; $i++) {
495 495
                 $lineParts[$i] = $this->getLaravelRelationName($lineParts[$i]);
496 496
             }
497 497
             $remixLine = implode('.', $lineParts);
Please login to merge, or discard this patch.