Completed
Pull Request — 1.4 (#66)
by
unknown
01:37
created
src/SQLParser/Node/NodeFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
                 }
193 193
 
194 194
                 if (isset($desc['hints']) && $desc['hints']) {
195
-                    $expr->setHints(array_map(static function (array $hint) {
195
+                    $expr->setHints(array_map(static function(array $hint) {
196 196
                         return new Hint($hint['hint_type'], $hint['hint_list']);
197 197
                     }, $desc['hints']));
198 198
                 }
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
             array('NOT'),
513 513
             array('&&', 'AND'),
514 514
             array('XOR'),
515
-            array('||', 'OR'), );
515
+            array('||', 'OR'),);
516 516
 
517 517
     private static $OPERATOR_TO_CLASS = array(
518 518
             '=' => 'SQLParser\Node\Equal',
@@ -819,7 +819,7 @@  discard block
 block discarded – undo
819 819
      */
820 820
     public static function nodeToInstanceDescriptor($node, MoufManager $moufManager)
821 821
     {
822
-        return self::array_map_deep($node, function ($item) use ($moufManager) {
822
+        return self::array_map_deep($node, function($item) use ($moufManager) {
823 823
             if ($item instanceof NodeInterface) {
824 824
                 return $item->toInstanceDescriptor($moufManager);
825 825
             } else {
@@ -863,7 +863,7 @@  discard block
 block discarded – undo
863 863
     {
864 864
         if (is_array($nodes)) {
865 865
             $elems = array();
866
-            array_walk_recursive($nodes, function ($item) use (&$elems, $platform, $indent, $parameters, $conditionsMode, $extrapolateParameters) {
866
+            array_walk_recursive($nodes, function($item) use (&$elems, $platform, $indent, $parameters, $conditionsMode, $extrapolateParameters) {
867 867
                 if ($item instanceof SqlRenderInterface) {
868 868
                     $itemSql = $item->toSql($parameters, $platform, $indent, $conditionsMode, $extrapolateParameters);
869 869
                     if ($itemSql !== null) {
Please login to merge, or discard this patch.
src/SQLParser/Node/Table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@
 block discarded – undo
233 233
         }
234 234
         if ($this->hints) {
235 235
             foreach ($this->hints as $hint) {
236
-                $sql .= ' ' . $hint->getType() . ' ' . $hint->getList();
236
+                $sql .= ' '.$hint->getType().' '.$hint->getList();
237 237
             }
238 238
         }
239 239
         if ($this->refClause) {
Please login to merge, or discard this patch.