@@ -58,7 +58,7 @@ |
||
| 58 | 58 | * Set table names SELECT query should be performed for. Table names can be provided with |
| 59 | 59 | * specified alias (AS construction). |
| 60 | 60 | * |
| 61 | - * @param array|string|mixed $tables Array of names, comma separated string or set of |
|
| 61 | + * @param string $tables Array of names, comma separated string or set of |
|
| 62 | 62 | * parameters. |
| 63 | 63 | * @return $this |
| 64 | 64 | */ |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | * |
| 127 | 127 | * @param array $columns Array of columns. |
| 128 | 128 | * @param array $rowsets Array of rowsets. |
| 129 | - * @return mixed |
|
| 129 | + * @return integer |
|
| 130 | 130 | */ |
| 131 | 131 | public function batchInsert(array $columns = [], array $rowsets = []) |
| 132 | 132 | { |
@@ -290,7 +290,7 @@ |
||
| 290 | 290 | /** |
| 291 | 291 | * Compile DISTINCT statement. |
| 292 | 292 | * |
| 293 | - * @param mixed $distinct Not every DBMS support distinct expression, only Postgres does. |
|
| 293 | + * @param boolean|string $distinct Not every DBMS support distinct expression, only Postgres does. |
|
| 294 | 294 | * |
| 295 | 295 | * @return string |
| 296 | 296 | */ |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | |
| 135 | 135 | if (!$hideHeader && !empty($name)) { |
| 136 | 136 | //Showing element name (if any provided) |
| 137 | - $header = $indent . $this->style->apply($name, 'name'); |
|
| 137 | + $header = $indent.$this->style->apply($name, 'name'); |
|
| 138 | 138 | |
| 139 | 139 | //Showing equal sing |
| 140 | 140 | $header .= $this->style->apply(' = ', 'syntax', '='); |
@@ -144,24 +144,24 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | if ($level > $this->maxLevel) { |
| 146 | 146 | //Dumper is not reference based, we can't dump too deep values |
| 147 | - return $indent . $this->style->apply('-too deep-', 'maxLevel') . "\n"; |
|
| 147 | + return $indent.$this->style->apply('-too deep-', 'maxLevel')."\n"; |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | $type = strtolower(gettype($value)); |
| 151 | 151 | |
| 152 | 152 | if ($type == 'array') { |
| 153 | - return $header . $this->dumpArray($value, $level, $hideHeader); |
|
| 153 | + return $header.$this->dumpArray($value, $level, $hideHeader); |
|
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | if ($type == 'object') { |
| 157 | - return $header . $this->dumpObject($value, $level, $hideHeader); |
|
| 157 | + return $header.$this->dumpObject($value, $level, $hideHeader); |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | if ($type == 'resource') { |
| 161 | 161 | //No need to dump resource value |
| 162 | - $element = get_resource_type($value) . ' resource '; |
|
| 162 | + $element = get_resource_type($value).' resource '; |
|
| 163 | 163 | |
| 164 | - return $header . $this->style->apply($element, 'type', 'resource') . "\n"; |
|
| 164 | + return $header.$this->style->apply($element, 'type', 'resource')."\n"; |
|
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | //Value length |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | } |
| 189 | 189 | |
| 190 | 190 | //Including value |
| 191 | - return $header . ' ' . $this->style->apply($element, 'value', $type) . "\n"; |
|
| 191 | + return $header.' '.$this->style->apply($element, 'value', $type)."\n"; |
|
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | /** |
@@ -206,8 +206,8 @@ discard block |
||
| 206 | 206 | $count = count($array); |
| 207 | 207 | |
| 208 | 208 | //Array size and scope |
| 209 | - $output = $this->style->apply("array({$count})", 'type', 'array') . "\n"; |
|
| 210 | - $output .= $indent . $this->style->apply('[', 'syntax', '[') . "\n"; |
|
| 209 | + $output = $this->style->apply("array({$count})", 'type', 'array')."\n"; |
|
| 210 | + $output .= $indent.$this->style->apply('[', 'syntax', '[')."\n"; |
|
| 211 | 211 | } else { |
| 212 | 212 | $output = ''; |
| 213 | 213 | } |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | |
| 227 | 227 | if (!$hideHeader) { |
| 228 | 228 | //Closing array scope |
| 229 | - $output .= $indent . $this->style->apply(']', 'syntax', ']') . "\n"; |
|
| 229 | + $output .= $indent.$this->style->apply(']', 'syntax', ']')."\n"; |
|
| 230 | 230 | } |
| 231 | 231 | |
| 232 | 232 | return $output; |
@@ -249,10 +249,10 @@ discard block |
||
| 249 | 249 | $indent = $this->style->indent($level); |
| 250 | 250 | |
| 251 | 251 | if (!$hideHeader) { |
| 252 | - $type = ($class ?: get_class($object)) . ' object '; |
|
| 252 | + $type = ($class ?: get_class($object)).' object '; |
|
| 253 | 253 | |
| 254 | - $header = $this->style->apply($type, 'type', 'object') . "\n"; |
|
| 255 | - $header .= $indent . $this->style->apply('(', 'syntax', '(') . "\n"; |
|
| 254 | + $header = $this->style->apply($type, 'type', 'object')."\n"; |
|
| 255 | + $header .= $indent.$this->style->apply('(', 'syntax', '(')."\n"; |
|
| 256 | 256 | } else { |
| 257 | 257 | $header = ''; |
| 258 | 258 | } |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | |
| 274 | 274 | return $header |
| 275 | 275 | . $this->dumpValue($debugInfo, '', $level + (is_scalar($object)), true) |
| 276 | - . $indent . $this->style->apply(')', 'syntax', ')') . "\n"; |
|
| 276 | + . $indent.$this->style->apply(')', 'syntax', ')')."\n"; |
|
| 277 | 277 | } |
| 278 | 278 | |
| 279 | 279 | if ($object instanceof \Closure) { |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | //Header, content, footer |
| 292 | - return $header . $output . $indent . $this->style->apply(')', 'syntax', ')') . "\n"; |
|
| 292 | + return $header.$output.$indent.$this->style->apply(')', 'syntax', ')')."\n"; |
|
| 293 | 293 | } |
| 294 | 294 | |
| 295 | 295 | /** |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | } |
| 326 | 326 | |
| 327 | 327 | //Property name includes access level |
| 328 | - $name = $property->getName() . $this->style->apply(':' . $access, 'access', $access); |
|
| 328 | + $name = $property->getName().$this->style->apply(':'.$access, 'access', $access); |
|
| 329 | 329 | |
| 330 | 330 | return $this->dumpValue($property->getValue($object), $name, $level + 1); |
| 331 | 331 | } |
@@ -263,7 +263,7 @@ |
||
| 263 | 263 | $key = md5(serialize([$query, $parameters, $this->name, $this->prefix])); |
| 264 | 264 | } |
| 265 | 265 | |
| 266 | - $data = $store->remember($key, $lifetime, function () use ($query, $parameters) { |
|
| 266 | + $data = $store->remember($key, $lifetime, function() use ($query, $parameters) { |
|
| 267 | 267 | return $this->query($query, $parameters)->fetchAll(); |
| 268 | 268 | }); |
| 269 | 269 | |
@@ -345,7 +345,7 @@ |
||
| 345 | 345 | */ |
| 346 | 346 | public function hasTable(string $name): bool |
| 347 | 347 | { |
| 348 | - return $this->driver->hasTable($this->prefix . $name); |
|
| 348 | + return $this->driver->hasTable($this->prefix.$name); |
|
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | /** |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | { |
| 138 | 138 | return $this->factory->make( |
| 139 | 139 | PostgresInsertQuery::class, |
| 140 | - ['driver' => $this, 'compiler' => $this->queryCompiler($prefix),] + $parameters |
|
| 140 | + ['driver' => $this, 'compiler' => $this->queryCompiler($prefix), ] + $parameters |
|
| 141 | 141 | ); |
| 142 | 142 | } |
| 143 | 143 | |