Completed
Pull Request — 1.2 (#37)
by Dorian
15:23
created
src/SQLParser/Node/NodeFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
             if (!empty($subTree) && !isset($subTree[0])) {
435 435
                 $subTree = StatementFactory::toObject($subTree);
436 436
             } else {
437
-                $subTree = array_map(function ($item) {
437
+                $subTree = array_map(function($item) {
438 438
                     if (is_array($item)) {
439 439
                         return self::toObject($item);
440 440
                     } else {
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
             array('NOT'),
468 468
             array('&&', 'AND'),
469 469
             array('XOR'),
470
-            array('||', 'OR'), );
470
+            array('||', 'OR'),);
471 471
 
472 472
     private static $OPERATOR_TO_CLASS = array(
473 473
             '=' => 'SQLParser\Node\Equal',
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
      */
763 763
     public static function nodeToInstanceDescriptor($node, MoufManager $moufManager)
764 764
     {
765
-        return self::array_map_deep($node, function ($item) use ($moufManager) {
765
+        return self::array_map_deep($node, function($item) use ($moufManager) {
766 766
             if ($item instanceof NodeInterface) {
767 767
                 return $item->toInstanceDescriptor($moufManager);
768 768
             } else {
@@ -806,7 +806,7 @@  discard block
 block discarded – undo
806 806
     {
807 807
         if (is_array($nodes)) {
808 808
             $elems = array();
809
-            array_walk_recursive($nodes, function ($item) use (&$elems, $dbConnection, $indent, $delimiter, $parameters, $conditionsMode) {
809
+            array_walk_recursive($nodes, function($item) use (&$elems, $dbConnection, $indent, $delimiter, $parameters, $conditionsMode) {
810 810
                 if ($item instanceof SqlRenderInterface) {
811 811
                     $itemSql = $item->toSql($parameters, $dbConnection, $indent, $conditionsMode);
812 812
                     if ($itemSql !== null) {
Please login to merge, or discard this patch.