@@ -69,7 +69,7 @@ |
||
| 69 | 69 | { |
| 70 | 70 | is_dir($folderPath) === true ?: $this->throwEx(new FileSystemException()); |
| 71 | 71 | |
| 72 | - $iterator = call_user_func(function () use ($folderPath) { |
|
| 72 | + $iterator = call_user_func(function() use ($folderPath) { |
|
| 73 | 73 | foreach (new DirectoryIterator($folderPath) as $directoryIterator) { |
| 74 | 74 | /** @var DirectoryIterator $directoryIterator */ |
| 75 | 75 | if ($directoryIterator->isDot() === false) { |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | private function checkDoNotHaveRequiredParametersOnCreate(string $className): bool |
| 55 | 55 | { |
| 56 | 56 | try { |
| 57 | - $reflection = new ReflectionClass($className); |
|
| 57 | + $reflection = new ReflectionClass($className); |
|
| 58 | 58 | if ($reflection->isInstantiable() === false) { |
| 59 | 59 | throw new InvalidSettingsClassException($className); |
| 60 | 60 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 35 | 35 | { |
| 36 | - $container[PDO::class] = function (PsrContainerInterface $container) { |
|
| 36 | + $container[PDO::class] = function(PsrContainerInterface $container) { |
|
| 37 | 37 | $settings = $container->get(SettingsProviderInterface::class)->get(C::class); |
| 38 | 38 | $database = new PDO( |
| 39 | 39 | $settings[C::KEY_CONNECTION_STRING], |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 33 | 33 | { |
| 34 | - $container[FileSystemInterface::class] = function () { |
|
| 34 | + $container[FileSystemInterface::class] = function() { |
|
| 35 | 35 | return new FileSystem(); |
| 36 | 36 | }; |
| 37 | 37 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 37 | 37 | { |
| 38 | - $container[AuthorizationManagerInterface::class] = function (PsrContainerInterface $container) { |
|
| 38 | + $container[AuthorizationManagerInterface::class] = function(PsrContainerInterface $container) { |
|
| 39 | 39 | $settingsProvider = $container->get(SettingsProviderInterface::class); |
| 40 | 40 | $settings = $settingsProvider->get(S::class); |
| 41 | 41 | |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 39 | 39 | { |
| 40 | - $container[FormatterFactoryInterface::class] = function (PsrContainerInterface $container) { |
|
| 40 | + $container[FormatterFactoryInterface::class] = function(PsrContainerInterface $container) { |
|
| 41 | 41 | $settingsProvider = $container->get(SettingsProviderInterface::class); |
| 42 | 42 | $settings = $settingsProvider->get(S::class); |
| 43 | 43 | |
@@ -150,7 +150,7 @@ |
||
| 150 | 150 | */ |
| 151 | 151 | public function setExpiresInSeconds(int $seconds): CookieInterface |
| 152 | 152 | { |
| 153 | - return $this->setExpiresAtUnixTime(time() + (int)max(0, $seconds)); |
|
| 153 | + return $this->setExpiresAtUnixTime(time() + (int) max(0, $seconds)); |
|
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | /** |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 36 | 36 | { |
| 37 | - $container[SessionInterface::class] = function (PsrContainerInterface $container): SessionInterface { |
|
| 37 | + $container[SessionInterface::class] = function(PsrContainerInterface $container): SessionInterface { |
|
| 38 | 38 | /** @var SessionFunctionsInterface $functions */ |
| 39 | 39 | $functions = $container->get(SessionFunctionsInterface::class); |
| 40 | 40 | $session = new Session($functions); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | return $session; |
| 43 | 43 | }; |
| 44 | 44 | |
| 45 | - $container[SessionFunctionsInterface::class] = function (): SessionFunctionsInterface { |
|
| 45 | + $container[SessionFunctionsInterface::class] = function(): SessionFunctionsInterface { |
|
| 46 | 46 | $functions = new SessionFunctions(); |
| 47 | 47 | |
| 48 | 48 | return $functions; |
@@ -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 | |