Skip to content

Commit

Permalink
CS Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
loicsapone committed Apr 4, 2024
1 parent 60e595b commit 08e5b84
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Bundle/Command/AbstractImportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ abstract class AbstractImportCommand extends Command

abstract protected function handleItem(): callable;

abstract protected function getReader(string $filename = null): ReaderInterface;
abstract protected function getReader(?string $filename = null): ReaderInterface;

protected function configure(): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/Bundle/Exception/ItemHandlingException.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class ItemHandlingException extends \RuntimeException
{
public function __construct(string $message = '', int $code = Command::FAILURE, \Throwable $previous = null)
public function __construct(string $message = '', int $code = Command::FAILURE, ?\Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}
Expand Down
2 changes: 1 addition & 1 deletion src/DataImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(
private readonly ReaderInterface $reader,
private readonly ProcessorInterface $processor,
private readonly ?ArchiverInterface $archiver = null,
SerializerInterface $serializer = null,
?SerializerInterface $serializer = null,
) {
$this->serializer = $serializer ?? new Serializer([new ObjectNormalizer(null, new CamelCaseToSnakeCaseNameConverter())]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Dto/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Generator
*/
private const NAMESPACE = 'App\Dto';

public function generate(string $class, array $columns, string $namespace = null): string
public function generate(string $class, array $columns, ?string $namespace = null): string
{
$file = new PhpFile();
$file->setStrictTypes();
Expand Down
2 changes: 1 addition & 1 deletion src/Exchange/MessageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class MessageFactory
public static function create(
ReaderInterface $reader,
mixed $data = null,
string $archiveFilePath = null,
?string $archiveFilePath = null,
): Message {
return new Message(
$reader->getFile()->getFilename(),
Expand Down
2 changes: 1 addition & 1 deletion src/Processor/CallbackProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CallbackProcessor implements ProcessorInterface

private readonly ?\Closure $end;

public function __construct(callable $begin = null, callable $item = null, callable $end = null)
public function __construct(?callable $begin = null, ?callable $item = null, ?callable $end = null)
{
$this->begin = $begin ? $begin(...) : null;
$this->item = $item ? $item(...) : null;
Expand Down

0 comments on commit 08e5b84

Please sign in to comment.