@@ -27,7 +27,7 @@ |
||
27 | 27 | public function addFields($fields) |
28 | 28 | { |
29 | 29 | if (!is_array($fields)) { |
30 | - $fields = array_map(function ($f) { |
|
30 | + $fields = array_map(function($f) { |
|
31 | 31 | return trim($f); |
32 | 32 | }, explode(',', $fields)); |
33 | 33 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | public function addTable($tables) |
59 | 59 | { |
60 | 60 | if (!is_array($tables)) { |
61 | - $tables = array_map(function ($t) { |
|
61 | + $tables = array_map(function($t) { |
|
62 | 62 | return trim($t); |
63 | 63 | }, explode(',', $tables)); |
64 | 64 | } |
@@ -84,13 +84,13 @@ discard block |
||
84 | 84 | public function addJoin($tables, $on = null, $using = null, $type = 'JOIN') |
85 | 85 | { |
86 | 86 | if (!is_array($tables)) { |
87 | - $tables = array_map(function ($t) { |
|
87 | + $tables = array_map(function($t) { |
|
88 | 88 | return trim($t); |
89 | 89 | }, explode(',', $tables)); |
90 | 90 | } |
91 | 91 | |
92 | 92 | if ($using !== null) { |
93 | - $using = array_map(function ($column) { |
|
93 | + $using = array_map(function($column) { |
|
94 | 94 | return trim($column); |
95 | 95 | }, explode(',', $using)); |
96 | 96 | } else { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function addFields($fields) |
28 | 28 | { |
29 | 29 | if (!is_array($fields)) { |
30 | - $fields = array_map(function ($f) { |
|
30 | + $fields = array_map(function($f) { |
|
31 | 31 | return trim($f); |
32 | 32 | }, explode(',', $fields)); |
33 | 33 | } |