Completed
Branch feature/pre-split (58adfb)
by Anton
08:24
created
moving/ORM/Entities/Schemas/Relations/BelongsToSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             || !isset($this->definition[RecordEntity::INVERSE][1])
77 77
         ) {
78 78
             throw new RelationSchemaException(
79
-                "Unable to revert BELONG_TO relation '{$this->record}'.'{$this}', " .
79
+                "Unable to revert BELONG_TO relation '{$this->record}'.'{$this}', ".
80 80
                 "backward relation type is missing or invalid."
81 81
             );
82 82
         }
Please login to merge, or discard this patch.
moving/ORM/Entities/Schemas/Relations/ManyToManySchema.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
         $names = [$this->record->getRole(), $this->outerRecord()->getRole()];
143 143
         asort($names);
144 144
 
145
-        return implode('_', $names) . static::PIVOT_POSTFIX;
145
+        return implode('_', $names).static::PIVOT_POSTFIX;
146 146
     }
147 147
 
148 148
     /**
Please login to merge, or discard this patch.
moving/ORM/Entities/Schemas/Relations/BelongsToMorphedSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
             || !isset($this->definition[RecordEntity::INVERSE][1])
82 82
         ) {
83 83
             throw new RelationSchemaException(
84
-                "Unable to revert BELONG_TO_MORPHED relation '{$this->record}'.'{$this}', " .
84
+                "Unable to revert BELONG_TO_MORPHED relation '{$this->record}'.'{$this}', ".
85 85
                 "backward relation type is missing or invalid."
86 86
             );
87 87
         }
Please login to merge, or discard this patch.
moving/ORM/Entities/Schemas/RelationSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -498,7 +498,7 @@
 block discarded – undo
498 498
         foreach ($proposed as $property => $alias) {
499 499
             if (isset($this->definition[$property])) {
500 500
                 //Let's create some default options based on user specified values
501
-                $options['definition:' . $alias] = $this->definition[$property];
501
+                $options['definition:'.$alias] = $this->definition[$property];
502 502
             }
503 503
         }
504 504
 
Please login to merge, or discard this patch.
moving/ORM/Entities/SchemaBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function hasTable($database, $table)
124 124
     {
125
-        return isset($this->tables[$database . '/' . $table]);
125
+        return isset($this->tables[$database.'/'.$table]);
126 126
     }
127 127
 
128 128
     /**
@@ -140,8 +140,8 @@  discard block
 block discarded – undo
140 140
     {
141 141
         $normalizedDatabase = $this->resolveDatabase($database);
142 142
 
143
-        if (isset($this->tables[$normalizedDatabase . '/' . $table])) {
144
-            return $this->tables[$normalizedDatabase . '/' . $table];
143
+        if (isset($this->tables[$normalizedDatabase.'/'.$table])) {
144
+            return $this->tables[$normalizedDatabase.'/'.$table];
145 145
         }
146 146
 
147 147
         $schema = $this->orm->database($normalizedDatabase)->table($table)->schema();
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             'table'    => $table
153 153
         ];
154 154
 
155
-        return $this->tables[$normalizedDatabase . '/' . $table] = $schema;
155
+        return $this->tables[$normalizedDatabase.'/'.$table] = $schema;
156 156
     }
157 157
 
158 158
     /**
Please login to merge, or discard this patch.
moving/ORM/Entities/Relations/ManyToMany.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
216 216
         //this type of relation
217 217
         $loader = new ManyToManyLoader($this->orm, '', $this->definition);
218 218
         $selector = $loader->createSelector($this->parentRole())->where(
219
-            $loader->pivotAlias() . '.' . $this->definition[RecordEntity::THOUGHT_INNER_KEY],
219
+            $loader->pivotAlias().'.'.$this->definition[RecordEntity::THOUGHT_INNER_KEY],
220 220
             $this->parentKey()
221 221
         );
222 222
 
Please login to merge, or discard this patch.
moving/ORM/Entities/Relations/BelongsToMorphed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         $selector = new RecordSelector($this->orm, $this->getClass());
52 52
 
53 53
         return $selector->where(
54
-            $selector->primaryAlias() . '.' . $this->definition[RecordEntity::OUTER_KEY],
54
+            $selector->primaryAlias().'.'.$this->definition[RecordEntity::OUTER_KEY],
55 55
             $this->parent->getField($this->definition[RecordEntity::INNER_KEY], false)
56 56
         );
57 57
     }
Please login to merge, or discard this patch.
moving/ORM/Entities/Relations/HasOne.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,13 +94,13 @@
 block discarded – undo
94 94
         //We are going to clarify selector manually (without loaders), that's easy relation
95 95
         if (isset($this->definition[RecordEntity::MORPH_KEY])) {
96 96
             $selector->where(
97
-                $selector->primaryAlias() . '.' . $this->definition[RecordEntity::MORPH_KEY],
97
+                $selector->primaryAlias().'.'.$this->definition[RecordEntity::MORPH_KEY],
98 98
                 $this->parent->recordRole()
99 99
             );
100 100
         }
101 101
 
102 102
         $selector->where(
103
-            $selector->primaryAlias() . '.' . $this->definition[RecordEntity::OUTER_KEY],
103
+            $selector->primaryAlias().'.'.$this->definition[RecordEntity::OUTER_KEY],
104 104
             $this->parent->getField($this->definition[RecordEntity::INNER_KEY], false)
105 105
         );
106 106
 
Please login to merge, or discard this patch.
moving/ORM/EntityCache.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             throw new CacheException("Entity cache size exceeded.");
98 98
         }
99 99
 
100
-        return $this->cache[get_class($entity) . '.' . $entity->primaryKey()] = $entity;
100
+        return $this->cache[get_class($entity).'.'.$entity->primaryKey()] = $entity;
101 101
     }
102 102
 
103 103
     /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             return;
112 112
         }
113 113
 
114
-        unset($this->cache[get_class($entity) . '.' . $entity->primaryKey()]);
114
+        unset($this->cache[get_class($entity).'.'.$entity->primaryKey()]);
115 115
     }
116 116
 
117 117
     /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function has($class, $primaryKey)
125 125
     {
126
-        return isset($this->cache[$class . '.' . $primaryKey]);
126
+        return isset($this->cache[$class.'.'.$primaryKey]);
127 127
     }
128 128
 
129 129
     /**
@@ -135,11 +135,11 @@  discard block
 block discarded – undo
135 135
      */
136 136
     public function get($class, $primaryKey)
137 137
     {
138
-        if (empty($this->cache[$class . '.' . $primaryKey])) {
138
+        if (empty($this->cache[$class.'.'.$primaryKey])) {
139 139
             return null;
140 140
         }
141 141
 
142
-        return $this->cache[$class . '.' . $primaryKey];
142
+        return $this->cache[$class.'.'.$primaryKey];
143 143
     }
144 144
 
145 145
     /**
Please login to merge, or discard this patch.