Completed
Branch feature/pre-split (ce4b6b)
by Anton
05:23
created
source/Spiral/ORM/Schemas/SchemaBuilder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -218,8 +218,8 @@  discard block
 block discarded – undo
218 218
         bool $unique = false,
219 219
         bool $resetState = false
220 220
     ): AbstractTable {
221
-        if (isset($this->tables[$database . '.' . $table])) {
222
-            $schema = $this->tables[$database . '.' . $table];
221
+        if (isset($this->tables[$database.'.'.$table])) {
222
+            $schema = $this->tables[$database.'.'.$table];
223 223
 
224 224
             if ($unique) {
225 225
                 throw new DoubleReferenceException(
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
         } else {
230 230
             //Requesting thought DatabaseManager
231 231
             $schema = $this->manager->database($database)->table($table)->getSchema();
232
-            $this->tables[$database . '.' . $table] = $schema;
232
+            $this->tables[$database.'.'.$table] = $schema;
233 233
         }
234 234
 
235 235
         $schema = clone $schema;
@@ -426,10 +426,10 @@  discard block
 block discarded – undo
426 426
         //We have to make sure that local table name is used
427 427
         $table = substr($schema->getName(), strlen($schema->getPrefix()));
428 428
 
429
-        if (empty($this->tables[$database . '.' . $table])) {
429
+        if (empty($this->tables[$database.'.'.$table])) {
430 430
             throw new SchemaException("AbstractTable must be requested before pushing back");
431 431
         }
432 432
 
433
-        $this->tables[$database . '.' . $table] = $schema;
433
+        $this->tables[$database.'.'.$table] = $schema;
434 434
     }
435 435
 }
436 436
\ No newline at end of file
Please login to merge, or discard this patch.
source/Spiral/ORM/Schemas/Relations/Traits/TablesTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     {
43 43
         $target = $this->getDefinition()->targetContext();
44 44
         if (empty($target)) {
45
-            throw new RelationSchemaException("Unable to get target context in " . get_class($this));
45
+            throw new RelationSchemaException("Unable to get target context in ".get_class($this));
46 46
         }
47 47
 
48 48
         return $builder->requestTable($target->getTable(), $target->getDatabase());
Please login to merge, or discard this patch.
source/Spiral/ORM/Helpers/RelationOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
         foreach ($aliases as $property => $alias) {
164 164
             if (isset($userOptions[$property])) {
165 165
                 //Let's create some default options based on user specified values
166
-                $proposed['option:' . $alias] = $userOptions[$property];
166
+                $proposed['option:'.$alias] = $userOptions[$property];
167 167
             }
168 168
         }
169 169
 
Please login to merge, or discard this patch.