Updated to coding standard v2.2.0

This commit is contained in:
Alejandro Celaya
2021-08-05 19:47:17 +02:00
parent 60d6314262
commit 9a31f53d4d
38 changed files with 40 additions and 51 deletions

View File

@@ -25,7 +25,7 @@ class GenerateKeyCommand extends BaseCommand
public function __construct(
private ApiKeyServiceInterface $apiKeyService,
private RoleResolverInterface $roleResolver
private RoleResolverInterface $roleResolver,
) {
parent::__construct();
}

View File

@@ -18,7 +18,7 @@ abstract class AbstractDatabaseCommand extends AbstractLockedCommand
public function __construct(
LockFactory $locker,
private ProcessRunnerInterface $processRunner,
PhpExecutableFinder $phpFinder
PhpExecutableFinder $phpFinder,
) {
parent::__construct($locker);
$this->phpBinary = $phpFinder->find(false) ?: 'php';

View File

@@ -26,7 +26,7 @@ class CreateDatabaseCommand extends AbstractDatabaseCommand
ProcessRunnerInterface $processRunner,
PhpExecutableFinder $phpFinder,
private Connection $regularConn,
private Connection $noDbNameConn
private Connection $noDbNameConn,
) {
parent::__construct($locker, $processRunner, $phpFinder);
}

View File

@@ -33,7 +33,7 @@ class GenerateShortUrlCommand extends BaseCommand
public function __construct(
private UrlShortenerInterface $urlShortener,
private ShortUrlStringifierInterface $stringifier,
private int $defaultShortCodeLength
private int $defaultShortCodeLength,
) {
parent::__construct();
}

View File

@@ -35,7 +35,7 @@ class ListShortUrlsCommand extends AbstractWithDateRangeCommand
public function __construct(
private ShortUrlServiceInterface $shortUrlService,
private DataTransformerInterface $transformer
private DataTransformerInterface $transformer,
) {
parent::__construct();
}

View File

@@ -11,7 +11,7 @@ final class LockedCommandConfig
private function __construct(
private string $lockName,
private bool $isBlocking,
private float $ttl = self::DEFAULT_TTL
private float $ttl = self::DEFAULT_TTL,
) {
}

View File

@@ -35,7 +35,7 @@ class LocateVisitsCommand extends AbstractLockedCommand implements VisitGeolocat
public function __construct(
private VisitLocatorInterface $visitLocator,
private IpLocationResolverInterface $ipLocationResolver,
LockFactory $locker
LockFactory $locker,
) {
parent::__construct($locker);
}

View File

@@ -23,7 +23,7 @@ class GeolocationDbUpdater implements GeolocationDbUpdaterInterface
private DbUpdaterInterface $dbUpdater,
private Reader $geoLiteDbReader,
private LockFactory $locker,
private TrackingOptions $trackingOptions
private TrackingOptions $trackingOptions,
) {
}