@@ -113,7 +113,7 @@ |
||
113 | 113 | $sign = $this->delta > 0 ? '+' : '-'; |
114 | 114 | |
115 | 115 | //"field" = "field" + delta |
116 | - return new Expression("{$field} {$sign} " . abs($this->delta)); |
|
116 | + return new Expression("{$field} {$sign} ".abs($this->delta)); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -498,7 +498,7 @@ |
||
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 |
@@ -142,7 +142,7 @@ |
||
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 | /** |
@@ -81,7 +81,7 @@ |
||
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 | } |
@@ -76,7 +76,7 @@ |
||
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 | } |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | */ |
181 | 181 | public function getTableID() |
182 | 182 | { |
183 | - return $this->getDatabase() . '.' . $this->getTable(); |
|
183 | + return $this->getDatabase().'.'.$this->getTable(); |
|
184 | 184 | } |
185 | 185 | |
186 | 186 | /** |
@@ -424,7 +424,7 @@ discard block |
||
424 | 424 | if (!empty($filter = $this->builder->getMutators($column->abstractType()))) { |
425 | 425 | //Mutator associated with type directly |
426 | 426 | $resolved += $filter; |
427 | - } elseif (!empty($filter = $this->builder->getMutators('php:' . $column->phpType()))) { |
|
427 | + } elseif (!empty($filter = $this->builder->getMutators('php:'.$column->phpType()))) { |
|
428 | 428 | //Mutator associated with php type |
429 | 429 | $resolved += $filter; |
430 | 430 | } |
@@ -94,13 +94,13 @@ |
||
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 |
@@ -216,7 +216,7 @@ |
||
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 |
@@ -51,7 +51,7 @@ |
||
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 | } |