Passed
Pull Request — master (#19)
by Simon
04:16
created
Controller/ExportJsSecuredRoutesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
         $cache = new FilesystemAdapter('sil_route_security_bundle', 0, $this->cacheDir);
62 62
 
63
-        $securedRoutesWithUserPermission = $cache->get($cacheKey, function (ItemInterface $item) use ($user){
63
+        $securedRoutesWithUserPermission = $cache->get($cacheKey, function(ItemInterface $item) use ($user){
64 64
             $item->expiresAfter(3600);
65 65
 
66 66
             $securedRoutesWithUserPermission = [];
Please login to merge, or discard this patch.
Tests/Controller/ExportJsSecuredRoutesControllerTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 SilRouteSecurity.addSecuredRoutes('app_secured_route_test', true);
37 37
 
38 38
 JAVASCRIPT
39
-       , $response->getContent());
39
+        , $response->getContent());
40 40
     }
41 41
 
42 42
     public function testWithUserHasNotAccessToRoute()
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function testWithUnauthenticatedUser()
13 13
     {
14
-        $client  = static::createClient();
14
+        $client = static::createClient();
15 15
 
16 16
         $crawler  = $client->request('GET', '/sil-route-security/export-js-secured-routes.js');
17 17
         $response = $client->getResponse();
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
     public function testWithUserHasAccessToRoute()
23 23
     {
24
-        $client  = static::createClient();
24
+        $client = static::createClient();
25 25
 
26 26
         $user = $this->createMock(UserInterface::class);
27 27
         $user->method('getRoles')->willReturn(['ROLE_APP_SECURED_ROUTE_TEST']);
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function testWithUserHasNotAccessToRoute()
43 43
     {
44
-        $client  = static::createClient();
44
+        $client = static::createClient();
45 45
 
46 46
         $user = $this->createMock(UserInterface::class);
47 47
         $user->method('getRoles')->willReturn([]);
Please login to merge, or discard this patch.