@@ -24,7 +24,6 @@ |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | - * @param string $caller |
|
| 28 | 27 | */ |
| 29 | 28 | public function isOk($parameters = null) |
| 30 | 29 | { |
@@ -635,6 +635,9 @@ discard block |
||
| 635 | 635 | }); |
| 636 | 636 | } |
| 637 | 637 | |
| 638 | + /** |
|
| 639 | + * @param \Closure $callback |
|
| 640 | + */ |
|
| 638 | 641 | private static function array_map_deep($array, $callback) |
| 639 | 642 | { |
| 640 | 643 | $new = array(); |
@@ -661,7 +664,7 @@ discard block |
||
| 661 | 664 | * @param array $parameters |
| 662 | 665 | * @param string $delimiter |
| 663 | 666 | * @param bool|string $wrapInBrackets |
| 664 | - * @param int|number $indent |
|
| 667 | + * @param integer $indent |
|
| 665 | 668 | * @param int $conditionsMode |
| 666 | 669 | * |
| 667 | 670 | * @return null|string |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | if (!empty($subTree) && !isset($subTree[0])) { |
| 336 | 336 | $subTree = StatementFactory::toObject($subTree); |
| 337 | 337 | } else { |
| 338 | - $subTree = array_map(function ($item) { |
|
| 338 | + $subTree = array_map(function($item) { |
|
| 339 | 339 | if (is_array($item)) { |
| 340 | 340 | return self::toObject($item); |
| 341 | 341 | } else { |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | array('NOT'), |
| 366 | 366 | array('&&', 'AND'), |
| 367 | 367 | array('XOR'), |
| 368 | - array('||', 'OR'), ); |
|
| 368 | + array('||', 'OR'),); |
|
| 369 | 369 | |
| 370 | 370 | private static $OPERATOR_TO_CLASS = array( |
| 371 | 371 | '=' => 'SQLParser\Node\Equal', |
@@ -626,7 +626,7 @@ discard block |
||
| 626 | 626 | { |
| 627 | 627 | $instanceDescriptor = $moufManager->createInstance(get_called_class()); |
| 628 | 628 | |
| 629 | - return self::array_map_deep($node, function ($item) use ($moufManager) { |
|
| 629 | + return self::array_map_deep($node, function($item) use ($moufManager) { |
|
| 630 | 630 | if ($item instanceof NodeInterface) { |
| 631 | 631 | return $item->toInstanceDescriptor($moufManager); |
| 632 | 632 | } else { |
@@ -670,7 +670,7 @@ discard block |
||
| 670 | 670 | { |
| 671 | 671 | if (is_array($nodes)) { |
| 672 | 672 | $elems = array(); |
| 673 | - array_walk_recursive($nodes, function ($item) use (&$elems, $dbConnection, $indent, $delimiter, $parameters, $conditionsMode) { |
|
| 673 | + array_walk_recursive($nodes, function($item) use (&$elems, $dbConnection, $indent, $delimiter, $parameters, $conditionsMode) { |
|
| 674 | 674 | if ($item instanceof SqlRenderInterface) { |
| 675 | 675 | $itemSql = $item->toSql($parameters, $dbConnection, $indent, $conditionsMode); |
| 676 | 676 | if ($itemSql !== null) { |
@@ -33,7 +33,6 @@ |
||
| 33 | 33 | namespace SQLParser\Node; |
| 34 | 34 | |
| 35 | 35 | use Mouf\Database\MagicQueryException; |
| 36 | -use Mouf\Database\MagicQueryParserException; |
|
| 37 | 36 | use SQLParser\SqlRenderInterface; |
| 38 | 37 | use Doctrine\DBAL\Connection; |
| 39 | 38 | use Mouf\MoufManager; |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | if (isset($desc['SELECT'])) { |
| 49 | 49 | $select = new Select(); |
| 50 | 50 | |
| 51 | - $columns = array_map(function ($item) { |
|
| 51 | + $columns = array_map(function($item) { |
|
| 52 | 52 | return NodeFactory::toObject($item); |
| 53 | 53 | }, $desc['SELECT']); |
| 54 | 54 | $columns = NodeFactory::simplify($columns); |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | - * @param string $caller |
|
| 28 | 27 | */ |
| 29 | 28 | public function isOk($parameters = null) |
| 30 | 29 | { |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | - * @param string $caller |
|
| 28 | 27 | */ |
| 29 | 28 | public function isOk($parameters = null) |
| 30 | 29 | { |
@@ -277,7 +277,7 @@ |
||
| 277 | 277 | * |
| 278 | 278 | * @param Connection $dbConnection |
| 279 | 279 | * @param array $parameters |
| 280 | - * @param number $indent |
|
| 280 | + * @param integer $indent |
|
| 281 | 281 | * @param int $conditionsMode |
| 282 | 282 | * |
| 283 | 283 | * @return string |
@@ -295,7 +295,7 @@ |
||
| 295 | 295 | * |
| 296 | 296 | * @param array $parameters |
| 297 | 297 | * @param Connection $dbConnection |
| 298 | - * @param int|number $indent |
|
| 298 | + * @param integer $indent |
|
| 299 | 299 | * @param int $conditionsMode |
| 300 | 300 | * @return string |
| 301 | 301 | */ |
@@ -277,7 +277,7 @@ |
||
| 277 | 277 | * |
| 278 | 278 | * @param Connection $dbConnection |
| 279 | 279 | * @param array $parameters |
| 280 | - * @param number $indent |
|
| 280 | + * @param integer $indent |
|
| 281 | 281 | * @param int $conditionsMode |
| 282 | 282 | * |
| 283 | 283 | * @return string |
@@ -277,7 +277,7 @@ |
||
| 277 | 277 | * |
| 278 | 278 | * @param Connection $dbConnection |
| 279 | 279 | * @param array $parameters |
| 280 | - * @param number $indent |
|
| 280 | + * @param integer $indent |
|
| 281 | 281 | * @param int $conditionsMode |
| 282 | 282 | * |
| 283 | 283 | * @return string |