Completed
Branch feature/pre-split (2ed6c7)
by Anton
04:25
created
source/Spiral/ODM/DocumentEntity.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
             return $helper->createAggregation($method);
250 250
         }
251 251
 
252
-        throw new DocumentException("Undefined method call '{$method}' in '" . get_called_class() . "'");
252
+        throw new DocumentException("Undefined method call '{$method}' in '".get_called_class()."'");
253 253
     }
254 254
 
255 255
     /**
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
             if ($value instanceof CompositableInterface) {
316 316
                 $atomics = array_merge_recursive(
317 317
                     $atomics,
318
-                    $value->buildAtomics((!empty($container) ? $container . '.' : '') . $field)
318
+                    $value->buildAtomics((!empty($container) ? $container.'.' : '').$field)
319 319
                 );
320 320
 
321 321
                 continue;
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 
331 331
             if (array_key_exists($field, $this->changes)) {
332 332
                 //Generating set operation for changed field
333
-                $atomics['$set'][(!empty($container) ? $container . '.' : '') . $field] = $value;
333
+                $atomics['$set'][(!empty($container) ? $container.'.' : '').$field] = $value;
334 334
             }
335 335
         }
336 336
 
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
     {
378 378
         $public = parent::publicFields();
379 379
 
380
-        array_walk_recursive($public, function (&$value) {
380
+        array_walk_recursive($public, function(&$value) {
381 381
             if ($value instanceof ObjectID) {
382 382
                 $value = (string)$value;
383 383
             }
Please login to merge, or discard this patch.
source/Spiral/ORM/Schemas/Relations/ManyToManySchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -244,6 +244,6 @@
 block discarded – undo
244 244
         $names = [$source->getRole(), $target->getRole()];
245 245
         asort($names);
246 246
 
247
-        return implode('_', $names) . static::PIVOT_POSTFIX;
247
+        return implode('_', $names).static::PIVOT_POSTFIX;
248 248
     }
249 249
 }
250 250
\ No newline at end of file
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/Nodes/PivotedNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,6 +106,6 @@
 block discarded – undo
106 106
         $pivotData = $data[ORMInterface::PIVOT_DATA];
107 107
 
108 108
         //Unique row criteria
109
-        return $pivotData[$this->innerPivotKey] . '.' . $pivotData[$this->outerPivotKey];
109
+        return $pivotData[$this->innerPivotKey].'.'.$pivotData[$this->outerPivotKey];
110 110
     }
111 111
 }
112 112
\ No newline at end of file
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/Loaders/ManyToManyLoader.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
         if ($this->isJoined()) {
48 48
             $query->join(
49 49
                 $this->getMethod() == self::LEFT_JOIN ? 'LEFT' : 'INNER',
50
-                $this->pivotTable() . ' AS ' . $this->pivotAlias(),
50
+                $this->pivotTable().' AS '.$this->pivotAlias(),
51 51
                 [$this->pivotKey(Record::THOUGHT_INNER_KEY) => $this->parentKey(Record::INNER_KEY)]
52 52
             );
53 53
         } else {
54 54
             $query->innerJoin(
55
-                $this->pivotTable() . ' AS ' . $this->pivotAlias(),
55
+                $this->pivotTable().' AS '.$this->pivotAlias(),
56 56
                 [$this->pivotKey(Record::THOUGHT_OUTER_KEY) => $this->localKey(Record::OUTER_KEY)]
57 57
             )->where(
58 58
                 $this->pivotKey(Record::THOUGHT_INNER_KEY),
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         if ($this->isJoined()) {
73 73
             $query->join(
74 74
                 $this->getMethod() == self::LEFT_JOIN ? 'LEFT' : 'INNER',
75
-                $this->getTable() . ' AS ' . $this->getAlias(),
75
+                $this->getTable().' AS '.$this->getAlias(),
76 76
                 [$this->localKey(Record::OUTER_KEY) => $this->pivotKey(Record::THOUGHT_OUTER_KEY)]
77 77
             );
78 78
         }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
             if ($minify) {
112 112
                 //Let's use column number instead of full name
113
-                $column = 'p_c' . count($columns);
113
+                $column = 'p_c'.count($columns);
114 114
             }
115 115
 
116 116
             $columns[] = "{$alias}.{$name} AS {$prefix}{$column}";
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             return $this->options['pivotAlias'];
160 160
         }
161 161
 
162
-        return $this->getAlias() . '_pivot';
162
+        return $this->getAlias().'_pivot';
163 163
     }
164 164
 
165 165
     /**
@@ -185,6 +185,6 @@  discard block
 block discarded – undo
185 185
             return null;
186 186
         }
187 187
 
188
-        return $this->pivotAlias() . '.' . $this->schema[$key];
188
+        return $this->pivotAlias().'.'.$this->schema[$key];
189 189
     }
190 190
 }
191 191
\ No newline at end of file
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/RecordSelector.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@
 block discarded – undo
289 289
      * order to cache request data.
290 290
      *
291 291
      * @param string                      $cacheKey
292
-     * @param int|\DateInterval           $ttl
292
+     * @param integer           $ttl
293 293
      * @param CacheItemPoolInterface|null $pool
294 294
      *
295 295
      * @return RecordIterator
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/RecordSource.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      *
95 95
      * @param string|\MongoId $id Primary key value.
96 96
      *
97
-     * @return EntityInterface|Record|null
97
+     * @return EntityInterface|null
98 98
      */
99 99
     public function findByPK($id)
100 100
     {
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/Loaders/RootLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             return null;
84 84
         }
85 85
 
86
-        return $this->getAlias() . '.' . $primaryKeys[0];
86
+        return $this->getAlias().'.'.$primaryKeys[0];
87 87
     }
88 88
 
89 89
     /**
Please login to merge, or discard this patch.