Skip to content

Commit

Permalink
fixed cs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
redecs committed Dec 17, 2018
1 parent 0df8b97 commit 7e938fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Serializer/Encoder/CsvEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class CsvEncoder implements EncoderInterface, DecoderInterface
self::ESCAPE_FORMULAS_KEY => false,
self::HEADERS_KEY => array(),
self::KEY_SEPARATOR_KEY => '.',
self::NO_HEADERS_KEY => false,
self::NO_HEADERS_KEY => false,
);

/**
Expand Down Expand Up @@ -143,7 +143,7 @@ public function decode($data, $format, array $context = array())
if (null === $headers) {
$nbHeaders = $nbCols;

if (($context[self::NO_HEADERS_KEY] ?? false)) {
if ($context[self::NO_HEADERS_KEY] ?? false) {
for ($i = 0; $i < $nbCols; ++$i) {
$headers[] = array($i);
}
Expand Down

0 comments on commit 7e938fd

Please sign in to comment.