| @@ 137-139 (lines=3) @@ | ||
| 134 | $indent = ''; |
|
| 135 | $separator = ','; |
|
| 136 | ||
| 137 | if ($key < count($columns) - 1) { |
|
| 138 | $indent = PHP_EOL . str_repeat(' ', $indentation); |
|
| 139 | } |
|
| 140 | ||
| 141 | if ($key == count($columns) - 1) { |
|
| 142 | $separator = ''; |
|
| @@ 203-205 (lines=3) @@ | ||
| 200 | foreach ($columns as $key => $column) { |
|
| 201 | $stub .= "Column::make('{$column}'),"; |
|
| 202 | ||
| 203 | if ($key < count($columns) - 1) { |
|
| 204 | $stub .= PHP_EOL . str_repeat(' ', $indentation); |
|
| 205 | } |
|
| 206 | } |
|
| 207 | ||
| 208 | return $stub; |
|