Skip to content

Commit

Permalink
Initialize array
Browse files Browse the repository at this point in the history
  • Loading branch information
endroid committed Feb 13, 2018
1 parent 03fb630 commit f2c7455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Writer/AbstractWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function getData(QrCodeInterface $qrCode): array
$row = $row->toArray();
}

$data['matrix'] = $matrix;
$data = ['matrix' => $matrix];
$data['block_count'] = count($matrix[0]);
$data['block_size'] = $qrCode->getSize() / $data['block_count'];
if ($qrCode->getRoundBlockSize()) {
Expand Down

0 comments on commit f2c7455

Please sign in to comment.