Passed
Push — develop ( a52f7d...7316b8 )
by nguereza
05:38 queued 01:59
created
src/Audit/Model/AuditRepository.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,14 +55,12 @@
 block discarded – undo
55 55
  * @package Platine\Framework\Audit\Model
56 56
  * @extends Repository<Audit>
57 57
  */
58
-class AuditRepository extends Repository
59
-{
58
+class AuditRepository extends Repository {
60 59
     /**
61 60
      * Create new instance
62 61
      * @param EntityManager<Audit> $manager
63 62
      */
64
-    public function __construct(EntityManager $manager)
65
-    {
63
+    public function __construct(EntityManager $manager) {
66 64
         parent::__construct($manager, Audit::class);
67 65
     }
68 66
 }
Please login to merge, or discard this patch.
src/OAuth2/Repository/ClientRepository.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,14 +58,12 @@
 block discarded – undo
58 58
  * @package Platine\Framework\OAuth2\Repository
59 59
  * @extends Repository<OauthClient>
60 60
  */
61
-class ClientRepository extends Repository implements ClientRepositoryInterface
62
-{
61
+class ClientRepository extends Repository implements ClientRepositoryInterface {
63 62
     /**
64 63
      * Create new instance
65 64
      * @param EntityManager<OauthClient> $manager
66 65
      */
67
-    public function __construct(EntityManager $manager)
68
-    {
66
+    public function __construct(EntityManager $manager) {
69 67
         parent::__construct($manager, OauthClient::class);
70 68
     }
71 69
 
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthAuthorizationCode.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@
 block discarded – undo
21 21
      */
22 22
     public static function mapEntity(EntityMapperInterface $mapper): void
23 23
     {
24
-         $mapper->primaryKey('authorization_code');
25
-         $mapper->useTimestamp();
26
-         $mapper->casts([
24
+            $mapper->primaryKey('authorization_code');
25
+            $mapper->useTimestamp();
26
+            $mapper->casts([
27 27
             'expires' => 'date',
28 28
             'created_at' => 'date',
29 29
             'updated_at' => '?date',
30
-         ]);
30
+            ]);
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@
 block discarded – undo
12 12
 * @package Platine\Framework\OAuth2\Entity
13 13
 * @extends Entity<OauthAuthorizationCode>
14 14
 */
15
-class OauthAuthorizationCode extends Entity
16
-{
15
+class OauthAuthorizationCode extends Entity {
17 16
     /**
18 17
      *
19 18
      * @param EntityMapperInterface<OauthAuthorizationCode> $mapper
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthClient.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
      */
22 22
     public static function mapEntity(EntityMapperInterface $mapper): void
23 23
     {
24
-         $mapper->useTimestamp();
25
-         $mapper->casts([
24
+            $mapper->useTimestamp();
25
+            $mapper->casts([
26 26
             'created_at' => 'date',
27 27
             'updated_at' => '?date',
28
-         ]);
28
+            ]);
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@
 block discarded – undo
12 12
 * @package Platine\Framework\OAuth2\Entity
13 13
 * @extends Entity<OauthClient>
14 14
 */
15
-class OauthClient extends Entity
16
-{
15
+class OauthClient extends Entity {
17 16
     /**
18 17
      *
19 18
      * @param EntityMapperInterface<OauthClient> $mapper
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthScope.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@
 block discarded – undo
12 12
 * @package Platine\Framework\OAuth2\Entity
13 13
 * @extends Entity<OauthScope>
14 14
 */
15
-class OauthScope extends Entity
16
-{
15
+class OauthScope extends Entity {
17 16
     /**
18 17
      *
19 18
      * @param EntityMapperInterface<OauthScope> $mapper
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
      */
22 22
     public static function mapEntity(EntityMapperInterface $mapper): void
23 23
     {
24
-         $mapper->useTimestamp();
25
-         $mapper->casts([
24
+            $mapper->useTimestamp();
25
+            $mapper->casts([
26 26
             'created_at' => 'date',
27 27
             'updated_at' => '?date',
28
-         ]);
28
+            ]);
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthRefreshToken.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@
 block discarded – undo
20 20
      */
21 21
     public static function mapEntity(EntityMapperInterface $mapper): void
22 22
     {
23
-         $mapper->primaryKey('refresh_token');
24
-         $mapper->useTimestamp();
25
-         $mapper->casts([
23
+            $mapper->primaryKey('refresh_token');
24
+            $mapper->useTimestamp();
25
+            $mapper->casts([
26 26
             'expires' => 'date',
27 27
             'created_at' => 'date',
28 28
             'updated_at' => '?date',
29
-         ]);
29
+            ]);
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@
 block discarded – undo
12 12
 * @package Platine\Framework\OAuth2\Entity
13 13
 * @extends Entity<OauthRefreshToken>
14 14
 */
15
-class OauthRefreshToken extends Entity
16
-{
15
+class OauthRefreshToken extends Entity {
17 16
     /**
18 17
      * @param EntityMapperInterface<OauthRefreshToken> $mapper
19 18
      * @return void
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthAccessToken.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@
 block discarded – undo
21 21
      */
22 22
     public static function mapEntity(EntityMapperInterface $mapper): void
23 23
     {
24
-         $mapper->primaryKey('access_token');
25
-         $mapper->useTimestamp();
26
-         $mapper->casts([
24
+            $mapper->primaryKey('access_token');
25
+            $mapper->useTimestamp();
26
+            $mapper->casts([
27 27
             'expires' => 'date',
28 28
             'created_at' => 'date',
29 29
             'updated_at' => '?date',
30
-         ]);
30
+            ]);
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@
 block discarded – undo
12 12
 * @package Platine\Framework\OAuth2\Entity
13 13
 * @extends Entity<OauthAccessToken>
14 14
 */
15
-class OauthAccessToken extends Entity
16
-{
15
+class OauthAccessToken extends Entity {
17 16
     /**
18 17
      *
19 18
      * @param EntityMapperInterface<OauthAccessToken> $mapper
Please login to merge, or discard this patch.
src/Audit/AuditUserInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
  * @class AuditUserInterface
52 52
  * @package Platine\Framework\Audit
53 53
  */
54
-interface AuditUserInterface
55
-{
54
+interface AuditUserInterface {
56 55
     /**
57 56
      * Return the user id
58 57
      * @return int
Please login to merge, or discard this patch.
src/Auth/Authentication/SessionAuthentication.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -185,11 +185,11 @@
 block discarded – undo
185 185
         }
186 186
 
187 187
         $data = [
188
-          'id' => $user->id,
189
-          'username' => $user->username,
190
-          'lastname' => $user->lastname,
191
-          'firstname' => $user->firstname,
192
-          'permissions' => array_unique($permissions),
188
+            'id' => $user->id,
189
+            'username' => $user->username,
190
+            'lastname' => $user->lastname,
191
+            'firstname' => $user->firstname,
192
+            'permissions' => array_unique($permissions),
193 193
         ];
194 194
 
195 195
         $this->session->set('user', array_merge($data, $this->getUserData($user)));
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,7 @@
 block discarded – undo
66 66
  * class SessionAuthentication
67 67
  * @package Platine\Framework\Auth\Authentication
68 68
  */
69
-class SessionAuthentication implements AuthenticationInterface
70
-{
69
+class SessionAuthentication implements AuthenticationInterface {
71 70
     /**
72 71
      * Create new instance
73 72
      * @param Application $app
Please login to merge, or discard this patch.