Skip to content

Commit

Permalink
array_shift improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Marczak committed Mar 24, 2022
1 parent 3372342 commit d8cb667
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ScheduledExportBundle/Export/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,7 @@ protected function saveFileInAssets(array $filenames): void

if ($this->input->getOption('divide_file')) {
$rows = explode($separator, $content);

$header = $rows[0];
array_shift($rows);
$header = array_shift($rows);

$counter = 0;
$fileCounter = 0;
Expand Down

0 comments on commit d8cb667

Please sign in to comment.