@@ -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 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | if ($reflectionMethod->isPublic() === true && |
| 105 | 105 | $reflectionMethod->isStatic() === true && |
| 106 | 106 | $reflectionMethod->hasReturnType() === true && |
| 107 | - (string)$reflectionMethod->getReturnType() === 'bool' && |
|
| 107 | + (string) $reflectionMethod->getReturnType() === 'bool' && |
|
| 108 | 108 | $reflectionMethod->getNumberOfParameters() === 1 && |
| 109 | 109 | $reflectionMethod->getParameters()[0]->getClass()->implementsInterface(ContextInterface::class) === true |
| 110 | 110 | ) { |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | $policy = (new Policy($rules, RuleAlgorithm::firstApplicable())) |
| 156 | - ->setName($policiesName . ' -> ' . RequestProperties::REQ_RESOURCE_TYPE . "=`$resourcesType`") |
|
| 156 | + ->setName($policiesName.' -> '.RequestProperties::REQ_RESOURCE_TYPE."=`$resourcesType`") |
|
| 157 | 157 | ->setTarget($this->target(RequestProperties::REQ_RESOURCE_TYPE, $resourcesType)); |
| 158 | 158 | |
| 159 | 159 | return $policy; |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 40 | 40 | { |
| 41 | - $container[AnalyzerInterface::class] = function (PsrContainerInterface $container) { |
|
| 41 | + $container[AnalyzerInterface::class] = function(PsrContainerInterface $container) { |
|
| 42 | 42 | $settingsProvider = $container->get(SettingsProviderInterface::class); |
| 43 | 43 | $corsSettings = $settingsProvider->get(C::class); |
| 44 | 44 | $analyzer = Analyzer::instance(new Settings($corsSettings)); |
@@ -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 | /** |