Completed
Push — 1.2 ( 195a1b...8d86e0 )
by David
33:46 queued 10s
created
src/Mouf/Database/QueryWriter/Condition/ParamNotAvailableCondition.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
     }
25 25
 
26 26
     /**
27
-     * @param string $caller
28 27
      */
29 28
     public function isOk($parameters = null)
30 29
     {
Please login to merge, or discard this patch.
src/SQLParser/Node/NodeFactory.php 3 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -635,6 +635,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/SQLParser/Query/StatementFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Mouf/Database/QueryWriter/Condition/ParamAvailableCondition.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
     }
25 25
 
26 26
     /**
27
-     * @param string $caller
28 27
      */
29 28
     public function isOk($parameters = null)
30 29
     {
Please login to merge, or discard this patch.
src/Mouf/Database/QueryWriter/Condition/ParamEqualsCondition.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
     }
25 25
 
26 26
     /**
27
-     * @param string $caller
28 27
      */
29 28
     public function isOk($parameters = null)
30 29
     {
Please login to merge, or discard this patch.
src/SQLParser/Node/AbstractManyInstancesOperator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/SQLParser/Query/Select.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/SQLParser/Node/SimpleFunction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/SQLParser/Node/WhenConditions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.