@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use yii\db\ActiveQueryInterface; |
6 | 6 | use yii\db\ActiveRecordInterface; |
7 | -use yii\helpers\Html; |
|
8 | 7 | use luya\Exception; |
9 | 8 | |
10 | 9 | /** |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | { |
140 | 140 | $output = null; |
141 | 141 | foreach ($input as $row) { |
142 | - $output.= self::generateRow($row, $delimiter, '"'); |
|
142 | + $output .= self::generateRow($row, $delimiter, '"'); |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | return $output; |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | */ |
157 | 157 | protected static function generateRow(array $row, $delimiter, $enclose) |
158 | 158 | { |
159 | - array_walk($row, function (&$item) use ($enclose) { |
|
159 | + array_walk($row, function(&$item) use ($enclose) { |
|
160 | 160 | if (is_bool($item)) { |
161 | 161 | $item = (int) $item; |
162 | 162 | } elseif (is_null($item)) { |
@@ -171,6 +171,6 @@ discard block |
||
171 | 171 | ], $item).$enclose; |
172 | 172 | }); |
173 | 173 | |
174 | - return implode($delimiter, $row) . PHP_EOL; |
|
174 | + return implode($delimiter, $row).PHP_EOL; |
|
175 | 175 | } |
176 | 176 | } |