Passed
Push — master ( cc53d4...c5780f )
by Pol
02:31
created
src/Resources/config/routes/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 use EcPhp\ApiGwAuthenticationBundle\Controller\User;
7 7
 use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
8 8
 
9
-return static function (RoutingConfigurator $routes) {
9
+return static function(RoutingConfigurator $routes) {
10 10
     $routes
11 11
         ->add('api_gw_authentication_bundle_user', '/user')
12 12
         ->controller(User::class);
Please login to merge, or discard this patch.
src/Service/KeyLoader/ApiGwKeyLoader.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     private function findFirstFileExist(string $key): array
126 126
     {
127 127
         $candidates = array_map(
128
-            static fn (string $directory): array => [$directory, $key],
128
+            static fn(string $directory): array => [$directory, $key],
129 129
             [
130 130
                 $this->projectDir,
131 131
                 __DIR__,
@@ -177,8 +177,7 @@  discard block
 block discarded – undo
177 177
     private function loadFailsafeKey(string $type): string
178 178
     {
179 179
         $key = KeyLoaderInterface::TYPE_PUBLIC === $type ?
180
-            $this->getFailsafePublicKey() :
181
-            $this->getFailsafePrivateKey();
180
+            $this->getFailsafePublicKey() : $this->getFailsafePrivateKey();
182 181
 
183 182
         $keyPathCandidateParts = $this->findFirstFileExist($key);
184 183
 
Please login to merge, or discard this patch.
src/Resources/config/services.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 use Psr\Http\Client\ClientInterface;
18 18
 use Psr\Http\Message\RequestFactoryInterface;
19 19
 
20
-return static function (ContainerConfigurator $container) {
20
+return static function(ContainerConfigurator $container) {
21 21
     $container
22 22
         ->services()
23 23
         ->set('api_gw_authentication.key_converter.jwk_converter', JWKConverter::class)
Please login to merge, or discard this patch.