@@ -107,7 +107,7 @@ |
||
| 107 | 107 | { |
| 108 | 108 | $result = ''; |
| 109 | 109 | if (!$this->docComment->isEmpty()) { |
| 110 | - $result .= $this->docComment->render($indentLevel) . "\n"; |
|
| 110 | + $result .= $this->docComment->render($indentLevel)."\n"; |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | $result .= $this->addIndent("{$this->access} \${$this->getName()}", $indentLevel); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | protected function addIndent(string $string, int $indent = 0): string |
| 33 | 33 | { |
| 34 | - return str_repeat(self::INDENT, max($indent, 0)) . $string; |
|
| 34 | + return str_repeat(self::INDENT, max($indent, 0)).$string; |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -261,7 +261,7 @@ |
||
| 261 | 261 | protected function getPath(BucketInterface $bucket, string $name): string |
| 262 | 262 | { |
| 263 | 263 | return $this->files->normalizePath( |
| 264 | - $this->options['home'] . '/' . $bucket->getOption('directory') . $name |
|
| 264 | + $this->options['home'].'/'.$bucket->getOption('directory').$name |
|
| 265 | 265 | ); |
| 266 | 266 | } |
| 267 | 267 | |
@@ -206,11 +206,11 @@ |
||
| 206 | 206 | protected function getPath(BucketInterface $bucket, string $name): string |
| 207 | 207 | { |
| 208 | 208 | if (empty($this->options['home'])) { |
| 209 | - return $this->files->normalizePath($bucket->getOption('directory') . $name); |
|
| 209 | + return $this->files->normalizePath($bucket->getOption('directory').$name); |
|
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | return $this->files->normalizePath( |
| 213 | - $this->options['home'] . '/' . $bucket->getOption('directory') . $name |
|
| 213 | + $this->options['home'].'/'.$bucket->getOption('directory').$name |
|
| 214 | 214 | ); |
| 215 | 215 | } |
| 216 | 216 | } |
| 217 | 217 | \ No newline at end of file |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | */ |
| 132 | 132 | public function buildAddress(string $name): string |
| 133 | 133 | { |
| 134 | - return $this->prefix . $name; |
|
| 134 | + return $this->prefix.$name; |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | /** |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | $name = $context->getName(); |
| 42 | 42 | if ($context instanceof \ReflectionMethod) { |
| 43 | - $name = $context->class . '::' . $name; |
|
| 43 | + $name = $context->class.'::'.$name; |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | parent::__construct("Unable to resolve '{$parameter->name}' argument in '{$name}'"); |
@@ -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 | /** |
@@ -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 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | */ |
| 114 | 114 | protected function expression(string $identifier): string |
| 115 | 115 | { |
| 116 | - return preg_replace_callback('/([a-z][0-9_a-z\.]*\(?)/i', function ($match) { |
|
| 116 | + return preg_replace_callback('/([a-z][0-9_a-z\.]*\(?)/i', function($match) { |
|
| 117 | 117 | $identifier = $match[1]; |
| 118 | 118 | |
| 119 | 119 | //Function name |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | */ |
| 137 | 137 | protected function aliasing(string $identifier, string $alias, bool $isTable): string |
| 138 | 138 | { |
| 139 | - $quoted = $this->quote($identifier, $isTable) . ' AS ' . $this->driver->identifier($alias); |
|
| 139 | + $quoted = $this->quote($identifier, $isTable).' AS '.$this->driver->identifier($alias); |
|
| 140 | 140 | |
| 141 | 141 | if ($isTable && strpos($identifier, '.') === false) { |
| 142 | 142 | //We have to apply operation post factum to prevent self aliasing (name AS name) |
@@ -173,12 +173,12 @@ discard block |
||
| 173 | 173 | protected function unpaired(string $identifier, bool $isTable): string |
| 174 | 174 | { |
| 175 | 175 | if ($isTable && !isset($this->aliases[$identifier])) { |
| 176 | - if (!isset($this->aliases[$this->prefix . $identifier])) { |
|
| 176 | + if (!isset($this->aliases[$this->prefix.$identifier])) { |
|
| 177 | 177 | //Generating our alias |
| 178 | - $this->registerAlias($this->prefix . $identifier, $identifier); |
|
| 178 | + $this->registerAlias($this->prefix.$identifier, $identifier); |
|
| 179 | 179 | } |
| 180 | 180 | |
| 181 | - $identifier = $this->prefix . $identifier; |
|
| 181 | + $identifier = $this->prefix.$identifier; |
|
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | return $this->driver->identifier($identifier); |