Skip to content

Commit

Permalink
Fix coding standard issues with php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
eivydas committed Mar 6, 2024
1 parent e773d54 commit 3b57fcd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Adapter/Factory/AbstractAdapterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ public function __invoke(ContainerInterface $container, $requestedName, ?array $
/**
* Merges the options given from the ServiceLocator Config object with the create options of the class.
*/
protected function mergeMvcConfig(ContainerInterface $container, string $requestedName = null): void
protected function mergeMvcConfig(ContainerInterface $container, ?string $requestedName = null): void
{
$config = $container->has('config') ? $container->get('config') : [];

if (! isset($config['bsb_flysystem']['adapters'][$requestedName]['options']) ||
! \is_array(($config['bsb_flysystem']['adapters'][$requestedName]['options']))
if (! isset($config['bsb_flysystem']['adapters'][$requestedName]['options'])
|| ! \is_array(($config['bsb_flysystem']['adapters'][$requestedName]['options']))
) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/RequirementsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class RequirementsException extends RuntimeException
{
public function __construct(array $requirements, string $for, int $code = 0, \Exception $previous = null)
public function __construct(array $requirements, string $for, int $code = 0, ?\Exception $previous = null)
{
$requirements = array_map(function ($r) {
return sprintf("'%s'", trim($r));
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Factory/FilesystemManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

class FilesystemManagerFactory
{
public function __invoke(ContainerInterface $container, $requestedName, array $options = null): FilesystemManager
public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null): FilesystemManager
{
$filesystems = ($container->has('config') ? $container->get('config') : [])['bsb_flysystem']['filesystems'] ?? [];

Expand Down

0 comments on commit 3b57fcd

Please sign in to comment.