Passed
Push — master ( a6a317...11687d )
by Pol
11:16
created
src/Resources/config/services.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 use EcPhp\ApiGwAuthenticationBundle\Service\KeyLoader\ApiGwKeyLoader;
14 14
 use Symfony\Component\HttpClient\CachingHttpClient;
15 15
 
16
-return static function (ContainerConfigurator $container) {
16
+return static function(ContainerConfigurator $container) {
17 17
     $container
18 18
         ->services()
19 19
         ->set('api_gw_authentication.http_client', CachingHttpClient::class)
Please login to merge, or discard this patch.
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   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,8 +153,7 @@
 block discarded – undo
153 153
     private function loadFailsafeKey(string $type): string
154 154
     {
155 155
         $key = KeyLoaderInterface::TYPE_PUBLIC === $type ?
156
-            $this->getFailsafePublicKey() :
157
-            $this->getFailsafePrivateKey();
156
+            $this->getFailsafePublicKey() : $this->getFailsafePrivateKey();
158 157
 
159 158
         // Todo: Remove duplicated code in here and JWKSKeyLoader.
160 159
         $jwksArray = json_decode(file_get_contents($key), true);
Please login to merge, or discard this patch.