Completed
Branch feature/pre-split (4c50c1)
by Anton
03:17
created
source/Spiral/ORM/Entities/Loaders/RelationLoader.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -267,7 +267,6 @@
 block discarded – undo
267 267
     /**
268 268
      * Create relation specific select query.
269 269
      *
270
-     * @param array $references List of parent key values aggregates while parsing.
271 270
      *
272 271
      * @return SelectQuery
273 272
      */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      */
230 230
     protected function localKey($key): string
231 231
     {
232
-        return $this->getAlias() . '.' . $this->schema[$key];
232
+        return $this->getAlias().'.'.$this->schema[$key];
233 233
     }
234 234
 
235 235
     /**
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      */
242 242
     protected function parentKey($key): string
243 243
     {
244
-        return $this->parent->getAlias() . '.' . $this->schema[$key];
244
+        return $this->parent->getAlias().'.'.$this->schema[$key];
245 245
     }
246 246
 
247 247
     /**
@@ -255,10 +255,10 @@  discard block
 block discarded – undo
255 255
         if (empty($this->options['alias'])) {
256 256
             if ($this->isLoaded() && $this->isJoined()) {
257 257
                 //Let's create unique alias, we are able to do that for relations just loaded
258
-                $this->options['alias'] = 'd' . decoct(++self::$countLevels);
258
+                $this->options['alias'] = 'd'.decoct(++self::$countLevels);
259 259
             } else {
260 260
                 //Let's use parent alias to continue chain
261
-                $this->options['alias'] = $parent->getAlias() . '_' . $this->relation;
261
+                $this->options['alias'] = $parent->getAlias().'_'.$this->relation;
262 262
 
263 263
             }
264 264
         }
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/Loaders/Traits/ColumnsTrait.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
 
38 38
             if ($minify) {
39 39
                 //Let's use column number instead of full name
40
-                $column = 'c' . count($columns);
40
+                $column = 'c'.count($columns);
41 41
             }
42 42
 
43 43
             $columns[] = "{$alias}.{$name} AS {$prefix}{$column}";
Please login to merge, or discard this patch.