@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | * |
458 | 458 | * @see findOne() |
459 | 459 | * @param mixed $id Primary key value. |
460 | - * @return RecordEntity|null |
|
460 | + * @return null|RecordInterface |
|
461 | 461 | * @throws SelectorException |
462 | 462 | */ |
463 | 463 | public function findByPK($id) |
@@ -482,7 +482,7 @@ discard block |
||
482 | 482 | * @see findByPK() |
483 | 483 | * @param array $where Selection WHERE statement. |
484 | 484 | * @param bool $setLimit Use limit 1. |
485 | - * @return RecordEntity|null |
|
485 | + * @return null|RecordInterface |
|
486 | 486 | */ |
487 | 487 | public function findOne(array $where = [], $setLimit = true) |
488 | 488 | { |
@@ -152,8 +152,8 @@ discard block |
||
152 | 152 | { |
153 | 153 | $offset = count($this->dataColumns); |
154 | 154 | foreach ($columns as $column) { |
155 | - $columnAlias = 'c' . (++$this->countColumns); |
|
156 | - $this->dataColumns[] = $table . '.' . $column . ' AS ' . $columnAlias; |
|
155 | + $columnAlias = 'c'.(++$this->countColumns); |
|
156 | + $this->dataColumns[] = $table.'.'.$column.' AS '.$columnAlias; |
|
157 | 157 | } |
158 | 158 | |
159 | 159 | return $offset; |
@@ -529,7 +529,7 @@ discard block |
||
529 | 529 | public function count($column = self::DEFAULT_COUNTING_FIELD) |
530 | 530 | { |
531 | 531 | if ($column == self::DEFAULT_COUNTING_FIELD && !empty($this->loader->getPrimaryKey())) { |
532 | - $column = 'DISTINCT(' . $this->loader->getPrimaryKey().')'; |
|
532 | + $column = 'DISTINCT('.$this->loader->getPrimaryKey().')'; |
|
533 | 533 | } |
534 | 534 | |
535 | 535 | return parent::count($column); |
@@ -162,7 +162,7 @@ |
||
162 | 162 | * @param array $directories |
163 | 163 | * @param array $exclude |
164 | 164 | * @param Finder $finder |
165 | - * @return ClassLocator |
|
165 | + * @return InvocationLocator |
|
166 | 166 | */ |
167 | 167 | public function invocationLocator( |
168 | 168 | array $directories = [], |
@@ -146,7 +146,7 @@ |
||
146 | 146 | */ |
147 | 147 | protected function classReflection($class) |
148 | 148 | { |
149 | - $loader = function ($class) { |
|
149 | + $loader = function($class) { |
|
150 | 150 | throw new LocatorException("Class '{$class}' can not be loaded."); |
151 | 151 | }; |
152 | 152 |
@@ -106,7 +106,7 @@ |
||
106 | 106 | * @see AbstractWhere |
107 | 107 | * @param string|mixed $identifier Column or expression. |
108 | 108 | * @param mixed $variousA Operator or value. |
109 | - * @param mixed $variousB Value, if operator specified. |
|
109 | + * @param Parameter $variousB Value, if operator specified. |
|
110 | 110 | * @param mixed $variousC Required only in between statements. |
111 | 111 | * @return $this |
112 | 112 | * @throws BuilderException |
@@ -419,7 +419,7 @@ |
||
419 | 419 | */ |
420 | 420 | private function havingWrapper() |
421 | 421 | { |
422 | - return function ($parameter) { |
|
422 | + return function($parameter) { |
|
423 | 423 | if ($parameter instanceof FragmentInterface) { |
424 | 424 | //We are only not creating bindings for plan fragments |
425 | 425 | if (!$parameter instanceof ParameterInterface && !$parameter instanceof QueryBuilder) { |
@@ -419,7 +419,7 @@ |
||
419 | 419 | */ |
420 | 420 | private function havingWrapper() |
421 | 421 | { |
422 | - return function ($parameter) { |
|
422 | + return function($parameter) { |
|
423 | 423 | if ($parameter instanceof FragmentInterface) { |
424 | 424 | //We are only not creating bindings for plan fragments |
425 | 425 | if (!$parameter instanceof ParameterInterface && !$parameter instanceof QueryBuilder) { |
@@ -429,7 +429,7 @@ |
||
429 | 429 | $class, |
430 | 430 | array $parameters, |
431 | 431 | $context = null, |
432 | - \ReflectionClass &$reflection = null |
|
432 | + \ReflectionClass & $reflection = null |
|
433 | 433 | ) { |
434 | 434 | try { |
435 | 435 | $reflection = new \ReflectionClass($class); |
@@ -189,7 +189,7 @@ |
||
189 | 189 | * $tag->tagged->posts; |
190 | 190 | * |
191 | 191 | * @param string $alias |
192 | - * @return RecordEntity|RecordIterator |
|
192 | + * @return null|EntityInterface |
|
193 | 193 | */ |
194 | 194 | public function __get($alias) |
195 | 195 | { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $value = ''; |
33 | 33 | } |
34 | 34 | |
35 | - $replaces[$prefix . $key . $postfix] = $value; |
|
35 | + $replaces[$prefix.$key.$postfix] = $value; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | return strtr($string, $replaces); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | foreach (array_reverse($directoryChain) as $directory) { |
66 | - if (!mkdir($baseDirectory = $baseDirectory . '/' . $directory)) { |
|
66 | + if (!mkdir($baseDirectory = $baseDirectory.'/'.$directory)) { |
|
67 | 67 | return false; |
68 | 68 | } |
69 | 69 | |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | |
349 | 349 | if ($extension) { |
350 | 350 | //I should find more original way of doing that |
351 | - rename($filename, $filename = $filename . '.' . $extension); |
|
351 | + rename($filename, $filename = $filename.'.'.$extension); |
|
352 | 352 | $this->destruct[] = $filename; |
353 | 353 | } |
354 | 354 | |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | $path = str_replace('\\', '/', $path); |
364 | 364 | |
365 | 365 | //Potentially open links and ../ type directories? |
366 | - return rtrim(preg_replace('/\/+/', '/', $path), '/') . ($directory ? '/' : ''); |
|
366 | + return rtrim(preg_replace('/\/+/', '/', $path), '/').($directory ? '/' : ''); |
|
367 | 367 | } |
368 | 368 | |
369 | 369 | /** |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | $relative = array_pad($relative, $padLength, '..'); |
395 | 395 | break; |
396 | 396 | } else { |
397 | - $relative[0] = './' . $relative[0]; |
|
397 | + $relative[0] = './'.$relative[0]; |
|
398 | 398 | } |
399 | 399 | } |
400 | 400 | } |