Completed
Pull Request — master (#11)
by Lucas
33:48 queued 07:22
created
src/LoginCidadao/OpenIDBundle/Controller/AuthorizeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         }
53 53
 
54 54
         $scopeManager = $this->getScopeManager();
55
-        $scopes       = array_map(function ($value) {
55
+        $scopes       = array_map(function($value) {
56 56
             return $value->getScope();
57 57
         }, $scopeManager->findScopesByScopes($scope));
58 58
 
Please login to merge, or discard this patch.
src/LoginCidadao/OpenIDBundle/Controller/ClientRegistrationController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
     }
179 179
 
180 180
     private function checkRegistrationAccessToken(Request $request,
181
-                                                  Client $client)
181
+                                                    Client $client)
182 182
     {
183 183
         $raw = $request->get('access_token',
184 184
             $request->headers->get('authorization'));
Please login to merge, or discard this patch.
src/LoginCidadao/OpenIDBundle/Controller/SessionManagementController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         }
60 60
 
61 61
         $result = array_unique(
62
-            array_map(function ($value) {
62
+            array_map(function($value) {
63 63
                 if ($value === null) {
64 64
                     return;
65 65
                 }
Please login to merge, or discard this patch.
src/LoginCidadao/OpenIDBundle/GrantType/AuthorizationCode.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     private $sessionStateStorage;
21 21
 
22 22
     public function createAccessToken(AccessTokenInterface $accessToken,
23
-                                      $client_id, $user_id, $scope)
23
+                                        $client_id, $user_id, $scope)
24 24
     {
25 25
         $token = parent::createAccessToken($accessToken, $client_id, $user_id,
26 26
                 $scope);
Please login to merge, or discard this patch.
src/LoginCidadao/OpenIDBundle/Storage/AccessToken.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      * @ingroup oauth2_section_4
85 85
      */
86 86
     public function setAccessToken($oauth_token, $client_id, $user_id, $expires,
87
-                                   $scope = null, $id_token = null)
87
+                                    $scope = null, $id_token = null)
88 88
     {
89 89
         // Get Client Entity
90 90
         $id     = explode('_', $client_id);
Please login to merge, or discard this patch.
src/LoginCidadao/OpenIDBundle/Storage/AuthorizationCode.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,8 +108,8 @@
 block discarded – undo
108 108
      * @ingroup oauth2_section_4
109 109
      */
110 110
     public function setAuthorizationCode($code, $client_id, $user_id,
111
-                                         $redirect_uri, $expires, $scope = null,
112
-                                         $id_token = null)
111
+                                            $redirect_uri, $expires, $scope = null,
112
+                                            $id_token = null)
113 113
     {
114 114
         $id     = explode('_', $client_id);
115 115
         $client = $this->em->getRepository('LoginCidadaoOAuthBundle:Client')
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,9 @@
 block discarded – undo
122 122
                 ->find($user_id);
123 123
         }
124 124
 
125
-        if (!$client) throw new \Exception('Unknown client identifier');
125
+        if (!$client) {
126
+            throw new \Exception('Unknown client identifier');
127
+        }
126 128
 
127 129
         $authorizationCode = new \LoginCidadao\OAuthBundle\Entity\AuthCode();
128 130
         $authorizationCode->setToken($code);
Please login to merge, or discard this patch.
src/LoginCidadao/OpenIDBundle/Storage/PublicKey.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     }
33 33
 
34 34
     public function setFilesystem(Filesystem $filesystem,
35
-                                  $fileName = 'private.pem')
35
+                                    $fileName = 'private.pem')
36 36
     {
37 37
         $this->filesystem = $filesystem;
38 38
         $this->fileName   = $fileName;
Please login to merge, or discard this patch.
src/LoginCidadao/OpenIDBundle/Tests/Controller/JsonWebKeyControllerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
     }
25 25
 
26 26
     protected function assertJsonResponse($response, $statusCode = 200,
27
-                                          $checkValidJson = true,
28
-                                          $contentType = 'application/json')
27
+                                            $checkValidJson = true,
28
+                                            $contentType = 'application/json')
29 29
     {
30 30
         $this->assertEquals(
31 31
             $statusCode, $response->getStatusCode(), $response->getContent()
Please login to merge, or discard this patch.
src/LoginCidadao/StatsBundle/Entity/StatisticsRepository.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     }
27 27
 
28 28
     public function findIndexedStatsByIndexKeyDate($index, $keys = null,
29
-                                                   \DateTime $afterDate = null)
29
+                                                    \DateTime $afterDate = null)
30 30
     {
31 31
         $data = $this->findStatsByIndexKeyDate($index, $keys, $afterDate);
32 32
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     }
35 35
 
36 36
     public function findIndexedUniqueStatsByIndexKeyDate($index, $keys = null,
37
-                                                         \DateTime $afterDate = null)
37
+                                                            \DateTime $afterDate = null)
38 38
     {
39 39
         $query = $this->getFindStatsByIndexKeyDateQuery($index, $keys,
40 40
             $afterDate);
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     }
46 46
 
47 47
     public function findIndexedUniqueStatsByIndexKeyDays($index, $keys = null,
48
-                                                         $days = null)
48
+                                                            $days = null)
49 49
     {
50 50
         $query = $this->getFindStatsByIndexKeyDateQuery($index, $keys, null,
51 51
             $days);
Please login to merge, or discard this patch.