@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | return null; |
| 235 | 235 | } |
| 236 | 236 | |
| 237 | - return $this->getAlias() . '.' . $this->schema[$key]; |
|
| 237 | + return $this->getAlias().'.'.$this->schema[$key]; |
|
| 238 | 238 | } |
| 239 | 239 | |
| 240 | 240 | /** |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | */ |
| 247 | 247 | protected function parentKey($key): string |
| 248 | 248 | { |
| 249 | - return $this->parent->getAlias() . '.' . $this->schema[$key]; |
|
| 249 | + return $this->parent->getAlias().'.'.$this->schema[$key]; |
|
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | /** |
@@ -260,10 +260,10 @@ discard block |
||
| 260 | 260 | if (empty($this->options['alias'])) { |
| 261 | 261 | if ($this->isLoaded() && $this->isJoined()) { |
| 262 | 262 | //Let's create unique alias, we are able to do that for relations just loaded |
| 263 | - $this->options['alias'] = 'd' . decoct(++self::$countLevels); |
|
| 263 | + $this->options['alias'] = 'd'.decoct(++self::$countLevels); |
|
| 264 | 264 | } else { |
| 265 | 265 | //Let's use parent alias to continue chain |
| 266 | - $this->options['alias'] = $parent->getAlias() . '_' . $this->relation; |
|
| 266 | + $this->options['alias'] = $parent->getAlias().'_'.$this->relation; |
|
| 267 | 267 | } |
| 268 | 268 | } |
| 269 | 269 | } |
@@ -83,14 +83,14 @@ discard block |
||
| 83 | 83 | if ($this->isJoined()) { |
| 84 | 84 | $query->join( |
| 85 | 85 | $this->getMethod() == self::JOIN ? 'INNER' : 'LEFT', |
| 86 | - $this->pivotTable() . ' AS ' . $this->pivotAlias()) |
|
| 86 | + $this->pivotTable().' AS '.$this->pivotAlias()) |
|
| 87 | 87 | ->on( |
| 88 | 88 | $this->pivotKey(Record::THOUGHT_INNER_KEY), |
| 89 | 89 | $this->parentKey(Record::INNER_KEY) |
| 90 | 90 | ); |
| 91 | 91 | } else { |
| 92 | 92 | $query->innerJoin( |
| 93 | - $this->pivotTable() . ' AS ' . $this->pivotAlias()) |
|
| 93 | + $this->pivotTable().' AS '.$this->pivotAlias()) |
|
| 94 | 94 | ->on( |
| 95 | 95 | $this->pivotKey(Record::THOUGHT_OUTER_KEY), |
| 96 | 96 | $this->localKey(Record::OUTER_KEY) |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | //Actual data is always INNER join |
| 129 | 129 | $query->join( |
| 130 | 130 | $this->getMethod() == self::JOIN ? 'INNER' : 'LEFT', |
| 131 | - $this->getTable() . ' AS ' . $this->getAlias() |
|
| 131 | + $this->getTable().' AS '.$this->getAlias() |
|
| 132 | 132 | )->on( |
| 133 | 133 | $this->localKey(Record::OUTER_KEY), |
| 134 | 134 | $this->pivotKey(Record::THOUGHT_OUTER_KEY) |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | |
| 169 | 169 | if ($minify) { |
| 170 | 170 | //Let's use column number instead of full name |
| 171 | - $column = 'p_c' . count($columns); |
|
| 171 | + $column = 'p_c'.count($columns); |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | $columns[] = "{$alias}.{$name} AS {$prefix}{$column}"; |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | return $this->options['pivotAlias']; |
| 218 | 218 | } |
| 219 | 219 | |
| 220 | - return $this->getAlias() . '_pivot'; |
|
| 220 | + return $this->getAlias().'_pivot'; |
|
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | /** |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | return null; |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | - return $this->pivotAlias() . '.' . $this->schema[$key]; |
|
| 246 | + return $this->pivotAlias().'.'.$this->schema[$key]; |
|
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | /** |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | |
| 39 | 39 | if ($minify) { |
| 40 | 40 | //Let's use column number instead of full name |
| 41 | - $column = 'c' . count($columns); |
|
| 41 | + $column = 'c'.count($columns); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | $columns[] = "{$alias}.{$name} AS {$prefix}{$column}"; |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | */ |
| 106 | 106 | public function primaryKey(): string |
| 107 | 107 | { |
| 108 | - return $this->getAlias() . '.' . $this->schema[Record::SH_PRIMARY_KEY]; |
|
| 108 | + return $this->getAlias().'.'.$this->schema[Record::SH_PRIMARY_KEY]; |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | /** |
@@ -163,7 +163,7 @@ |
||
| 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 | |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | $pivotData = $data[ORMInterface::PIVOT_DATA]; |
| 97 | 97 | |
| 98 | 98 | //Unique row criteria |
| 99 | - return $pivotData[$this->innerPivotKey] . '.' . $pivotData[$this->outerPivotKey]; |
|
| 99 | + return $pivotData[$this->innerPivotKey].'.'.$pivotData[$this->outerPivotKey]; |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | } |
| 103 | 103 | \ No newline at end of file |
@@ -241,8 +241,8 @@ discard block |
||
| 241 | 241 | ): AbstractTable { |
| 242 | 242 | $driver = $this->manager->database($database)->getDriver(); |
| 243 | 243 | |
| 244 | - if (isset($this->tables[$driver->getName() . '.' . $table])) { |
|
| 245 | - $schema = $this->tables[$driver->getName() . '.' . $table]; |
|
| 244 | + if (isset($this->tables[$driver->getName().'.'.$table])) { |
|
| 245 | + $schema = $this->tables[$driver->getName().'.'.$table]; |
|
| 246 | 246 | |
| 247 | 247 | if ($unique) { |
| 248 | 248 | throw new DoubleReferenceException( |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | } |
| 252 | 252 | } else { |
| 253 | 253 | $schema = $this->manager->database($database)->table($table)->getSchema(); |
| 254 | - $this->tables[$driver->getName() . '.' . $table] = $schema; |
|
| 254 | + $this->tables[$driver->getName().'.'.$table] = $schema; |
|
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | $schema = clone $schema; |
@@ -473,10 +473,10 @@ discard block |
||
| 473 | 473 | //We have to make sure that local table name is used |
| 474 | 474 | $table = substr($schema->getName(), strlen($schema->getPrefix())); |
| 475 | 475 | |
| 476 | - if (empty($this->tables[$schema->getDriver()->getName() . '.' . $table])) { |
|
| 476 | + if (empty($this->tables[$schema->getDriver()->getName().'.'.$table])) { |
|
| 477 | 477 | throw new SchemaException("AbstractTable must be requested before pushing back"); |
| 478 | 478 | } |
| 479 | 479 | |
| 480 | - $this->tables[$schema->getDriver()->getName() . '.' . $table] = $schema; |
|
| 480 | + $this->tables[$schema->getDriver()->getName().'.'.$table] = $schema; |
|
| 481 | 481 | } |
| 482 | 482 | } |
| 483 | 483 | \ No newline at end of file |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | |
| 201 | 201 | if (!$this->isSynced($this->parent, $instance)) { |
| 202 | 202 | //Delayed linking |
| 203 | - $parentCommand->onExecute(function ($outerCommand) use ($innerCommand) { |
|
| 203 | + $parentCommand->onExecute(function($outerCommand) use ($innerCommand) { |
|
| 204 | 204 | $innerCommand->addContext( |
| 205 | 205 | $this->key(Record::OUTER_KEY), |
| 206 | 206 | $this->lookupKey(Record::INNER_KEY, $this->parent, $outerCommand) |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | if (!empty($this->key(Record::MORPH_KEY))) { |
| 258 | 258 | //Morph key |
| 259 | 259 | $decorator->where( |
| 260 | - '{@}.' . $this->key(Record::MORPH_KEY), |
|
| 260 | + '{@}.'.$this->key(Record::MORPH_KEY), |
|
| 261 | 261 | $this->orm->define(get_class($this->parent), ORMInterface::R_ROLE_NAME) |
| 262 | 262 | ); |
| 263 | 263 | } |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | $args[0] = $this->prepare($args[0]); |
| 132 | 132 | |
| 133 | 133 | //Routing where |
| 134 | - call_user_func_array([$this->query, 'and' . ucfirst($this->target)], $args); |
|
| 134 | + call_user_func_array([$this->query, 'and'.ucfirst($this->target)], $args); |
|
| 135 | 135 | |
| 136 | 136 | return $this; |
| 137 | 137 | } |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $args[0] = $this->prepare($args[0]); |
| 161 | 161 | |
| 162 | 162 | //Routing where |
| 163 | - call_user_func_array([$this->query, 'or' . ucfirst($this->target)], $args); |
|
| 163 | + call_user_func_array([$this->query, 'or'.ucfirst($this->target)], $args); |
|
| 164 | 164 | |
| 165 | 165 | return $this; |
| 166 | 166 | } |