@@ -61,7 +61,7 @@ |
||
| 61 | 61 | "Invalid Policies folder `$policiesFolder`." |
| 62 | 62 | ); |
| 63 | 63 | assert(empty($policiesFileMask) === false, "Invalid Policies file mask `$policiesFileMask`."); |
| 64 | - $policiesPath = $policiesFolder . DIRECTORY_SEPARATOR . $policiesFileMask; |
|
| 64 | + $policiesPath = $policiesFolder.DIRECTORY_SEPARATOR.$policiesFileMask; |
|
| 65 | 65 | |
| 66 | 66 | $topPolicyName = $defaults[static::KEY_TOP_POLICY_NAME]; |
| 67 | 67 | |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public static function configureContainer(ContainerInterface $container): void |
| 34 | 34 | { |
| 35 | - $container[FormValidatorFactoryInterface::class] = function (PsrContainerInterface $container) { |
|
| 35 | + $container[FormValidatorFactoryInterface::class] = function(PsrContainerInterface $container) { |
|
| 36 | 36 | $factory = new FormValidatorFactory($container); |
| 37 | 37 | |
| 38 | 38 | return $factory; |
@@ -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 | } |
@@ -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,7 +138,7 @@ 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) { |
@@ -173,7 +173,7 @@ 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 | 179 | $inOut->writeInfo('Cache created.'); |
@@ -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 | |