@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | $validatorsFolder = $defaults[static::KEY_VALIDATORS_FOLDER] ?? null; |
| 61 | 61 | $validatorsFileMask = $defaults[static::KEY_VALIDATORS_FILE_MASK] ?? null; |
| 62 | - $validatorsPath = $validatorsFolder . DIRECTORY_SEPARATOR . $validatorsFileMask; |
|
| 62 | + $validatorsPath = $validatorsFolder.DIRECTORY_SEPARATOR.$validatorsFileMask; |
|
| 63 | 63 | |
| 64 | 64 | assert( |
| 65 | 65 | $validatorsFolder !== null && empty(glob($validatorsFolder)) === false, |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $messagesNamespace = $defaults[static::KEY_MESSAGES_NAMESPACE] ?? null; |
| 70 | 70 | assert( |
| 71 | 71 | !empty($messagesNamespace), |
| 72 | - 'Localization namespace have to be specified. ' . |
|
| 72 | + 'Localization namespace have to be specified. '. |
|
| 73 | 73 | 'Otherwise it is not possible to convert validation errors to string representation.' |
| 74 | 74 | ); |
| 75 | 75 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 39 | 39 | { |
| 40 | 40 | $container[CookieJarInterface::class] = |
| 41 | - function (PsrContainerInterface $container): CookieJarInterface { |
|
| 41 | + function(PsrContainerInterface $container): CookieJarInterface { |
|
| 42 | 42 | $settings = $container->get(SettingsProviderInterface::class)->get(CookieSettings::class); |
| 43 | 43 | |
| 44 | 44 | return new CookieJar( |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | }; |
| 52 | 52 | |
| 53 | 53 | $container[CookieFunctionsInterface::class] = |
| 54 | - function (PsrContainerInterface $container): CookieFunctionsInterface { |
|
| 54 | + function(PsrContainerInterface $container): CookieFunctionsInterface { |
|
| 55 | 55 | return new CookieFunctions(); |
| 56 | 56 | }; |
| 57 | 57 | } |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | return [ |
| 101 | 101 | [ |
| 102 | 102 | static::OPTION_NAME => static::OPT_PATH, |
| 103 | - static::OPTION_DESCRIPTION => 'Path to a list of migrations or seeds. ' . |
|
| 103 | + static::OPTION_DESCRIPTION => 'Path to a list of migrations or seeds. '. |
|
| 104 | 104 | 'If not given a path from settings will be used.', |
| 105 | 105 | static::OPTION_SHORTCUT => 'i', |
| 106 | 106 | static::OPTION_MODE => static::OPTION_MODE__REQUIRED, |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $this->createSeedRunner($inOut, $path, $seedInit)->run($container); |
| 149 | 149 | break; |
| 150 | 150 | default: |
| 151 | - $inOut->writeError("Unsupported action `$action`." . PHP_EOL); |
|
| 151 | + $inOut->writeError("Unsupported action `$action`.".PHP_EOL); |
|
| 152 | 152 | break; |
| 153 | 153 | } |
| 154 | 154 | } |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | $routeConfigurators = []; |
| 109 | 109 | $coreData = $this->getCoreData(); |
| 110 | 110 | if (empty($method) === false && empty($path) === false) { |
| 111 | - list(, , , , , $routeConfigurators) = $this->initRouter($coreData)->match($method, $path); |
|
| 111 | + list(,,,,, $routeConfigurators) = $this->initRouter($coreData)->match($method, $path); |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | // configure container |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | $this->executeClear($container, $inOut); |
| 114 | 114 | break; |
| 115 | 115 | default: |
| 116 | - $inOut->writeError("Unsupported action `$action`." . PHP_EOL); |
|
| 116 | + $inOut->writeError("Unsupported action `$action`.".PHP_EOL); |
|
| 117 | 117 | break; |
| 118 | 118 | } |
| 119 | 119 | } |
@@ -138,14 +138,14 @@ discard block |
||
| 138 | 138 | throw new ConfigurationException(); |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | - $path = $cacheDir . DIRECTORY_SEPARATOR . $class . '.php'; |
|
| 141 | + $path = $cacheDir.DIRECTORY_SEPARATOR.$class.'.php'; |
|
| 142 | 142 | |
| 143 | 143 | $fileSystem = $this->getFileSystem($container); |
| 144 | 144 | if ($fileSystem->exists($path) === true) { |
| 145 | 145 | $fileSystem->delete($path); |
| 146 | - $inOut->writeInfo("Cache file deleted `$path`." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 146 | + $inOut->writeInfo("Cache file deleted `$path`.".PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 147 | 147 | } else { |
| 148 | - $inOut->writeInfo('Cache already clean.' . PHP_EOL); |
|
| 148 | + $inOut->writeInfo('Cache already clean.'.PHP_EOL); |
|
| 149 | 149 | } |
| 150 | 150 | } |
| 151 | 151 | |
@@ -173,11 +173,11 @@ discard block |
||
| 173 | 173 | $settingsData = $settingsProvider->serialize(); |
| 174 | 174 | $content = $this->composeContent($settingsData, $namespace, $class, $method); |
| 175 | 175 | |
| 176 | - $path = $cacheDir . DIRECTORY_SEPARATOR . $class . '.php'; |
|
| 176 | + $path = $cacheDir.DIRECTORY_SEPARATOR.$class.'.php'; |
|
| 177 | 177 | $this->getFileSystem($container)->write($path, $content); |
| 178 | 178 | |
| 179 | - $inOut->writeInfo('Cache created.' . PHP_EOL); |
|
| 180 | - $inOut->writeInfo("Cache written to `$path`." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 179 | + $inOut->writeInfo('Cache created.'.PHP_EOL); |
|
| 180 | + $inOut->writeInfo("Cache written to `$path`.".PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | /** |
@@ -244,8 +244,8 @@ discard block |
||
| 244 | 244 | |
| 245 | 245 | assert( |
| 246 | 246 | $data !== null, |
| 247 | - 'It seems the data are not exportable. It is likely to be caused by class instances ' . |
|
| 248 | - 'that do not implement ` __set_state` magic method required by `var_export`. ' . |
|
| 247 | + 'It seems the data are not exportable. It is likely to be caused by class instances '. |
|
| 248 | + 'that do not implement ` __set_state` magic method required by `var_export`. '. |
|
| 249 | 249 | 'See http://php.net/manual/en/language.oop5.magic.php#object.set-state for more details.' |
| 250 | 250 | ); |
| 251 | 251 | |
@@ -86,12 +86,12 @@ |
||
| 86 | 86 | public function run(ContainerInterface $container): void |
| 87 | 87 | { |
| 88 | 88 | foreach ($this->getSeeds($container) as $seederClass) { |
| 89 | - $this->getIO()->writeInfo("Starting seed for `$seederClass`..." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 89 | + $this->getIO()->writeInfo("Starting seed for `$seederClass`...".PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 90 | 90 | $this->executeSeedInit($container, $seederClass); |
| 91 | 91 | /** @var SeedInterface $seeder */ |
| 92 | 92 | $seeder = new $seederClass(); |
| 93 | 93 | $seeder->init($container)->run(); |
| 94 | - $this->getIO()->writeInfo("Seed finished for `$seederClass`." . PHP_EOL, IoInterface::VERBOSITY_NORMAL); |
|
| 94 | + $this->getIO()->writeInfo("Seed finished for `$seederClass`.".PHP_EOL, IoInterface::VERBOSITY_NORMAL); |
|
| 95 | 95 | } |
| 96 | 96 | } |
| 97 | 97 | |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | |
| 65 | 65 | $path = $this->getSeedsPath(); |
| 66 | 66 | assert($fileSystem->exists($path) === true); |
| 67 | - $this->getIO()->writeInfo("Seeds `$path` started." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 67 | + $this->getIO()->writeInfo("Seeds `$path` started.".PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 68 | 68 | |
| 69 | 69 | $seedClasses = $fileSystem->requireFile($path); |
| 70 | 70 | $this->setSeedClasses($seedClasses); |
@@ -73,11 +73,11 @@ discard block |
||
| 73 | 73 | { |
| 74 | 74 | foreach ($this->getMigrations($container) as $class) { |
| 75 | 75 | assert(is_string($class)); |
| 76 | - $this->getIO()->writeInfo("Starting migration for `$class`..." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 76 | + $this->getIO()->writeInfo("Starting migration for `$class`...".PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 77 | 77 | /** @var MigrationInterface $migration */ |
| 78 | 78 | $migration = new $class($container); |
| 79 | 79 | $migration->init($container)->migrate(); |
| 80 | - $this->getIO()->writeInfo("Migration finished for `$class`." . PHP_EOL, IoInterface::VERBOSITY_NORMAL); |
|
| 80 | + $this->getIO()->writeInfo("Migration finished for `$class`.".PHP_EOL, IoInterface::VERBOSITY_NORMAL); |
|
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | 83 | |
@@ -90,11 +90,11 @@ discard block |
||
| 90 | 90 | { |
| 91 | 91 | foreach ($this->getRollbacks($container) as $class) { |
| 92 | 92 | assert(is_string($class)); |
| 93 | - $this->getIO()->writeInfo("Starting rollback for `$class`..." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 93 | + $this->getIO()->writeInfo("Starting rollback for `$class`...".PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 94 | 94 | /** @var MigrationInterface $migration */ |
| 95 | 95 | $migration = new $class($container); |
| 96 | 96 | $migration->init($container)->rollback(); |
| 97 | - $this->getIO()->writeInfo("Rollback finished for `$class`." . PHP_EOL, IoInterface::VERBOSITY_NORMAL); |
|
| 97 | + $this->getIO()->writeInfo("Rollback finished for `$class`.".PHP_EOL, IoInterface::VERBOSITY_NORMAL); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | $manager = $this->getConnection($container)->getSchemaManager(); |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $path = $this->getMigrationsPath(); |
| 60 | 60 | assert($fileSystem->exists($path) === true); |
| 61 | 61 | |
| 62 | - $this->getIO()->writeInfo("Migrations `$path` started." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 62 | + $this->getIO()->writeInfo("Migrations `$path` started.".PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 63 | 63 | |
| 64 | 64 | $migrationClasses = $fileSystem->requireFile($path); |
| 65 | 65 | $this->setMigrationClasses($migrationClasses); |