@@ 209-211 (lines=3) @@ | ||
206 | $indent = ''; |
|
207 | $separator = ','; |
|
208 | ||
209 | if ($key < count($columns) - 1) { |
|
210 | $indent = PHP_EOL . str_repeat(' ', $indentation); |
|
211 | } |
|
212 | ||
213 | if ($key == count($columns) - 1) { |
|
214 | $separator = ''; |
|
@@ 275-277 (lines=3) @@ | ||
272 | foreach ($columns as $key => $column) { |
|
273 | $stub .= "Column::make('{$column}'),"; |
|
274 | ||
275 | if ($key < count($columns) - 1) { |
|
276 | $stub .= PHP_EOL . str_repeat(' ', $indentation); |
|
277 | } |
|
278 | } |
|
279 | ||
280 | return $stub; |