Test Failed
Push — develop ( 8fcf9d...8b5bdd )
by nguereza
02:43
created
src/Auth/Exception/AccountNotFoundException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
37 37
  * @class AccountNotFoundException
38 38
  * @package Platine\Framework\Auth\Exception
39 39
  */
40
-class AccountNotFoundException extends AuthenticationException
41
-{
40
+class AccountNotFoundException extends AuthenticationException {
42 41
 }
Please login to merge, or discard this patch.
src/Auth/Exception/MissingCredentialsException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
37 37
  * @class MissingCredentialsException
38 38
  * @package Platine\Framework\Auth\Exception
39 39
  */
40
-class MissingCredentialsException extends AuthenticationException
41
-{
40
+class MissingCredentialsException extends AuthenticationException {
42 41
 }
Please login to merge, or discard this patch.
src/Auth/Exception/AuthenticationException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,6 +39,5 @@
 block discarded – undo
39 39
  * @class AuthenticationException
40 40
  * @package Platine\Framework\Auth\Exception
41 41
  */
42
-class AuthenticationException extends Exception
43
-{
42
+class AuthenticationException extends Exception {
44 43
 }
Please login to merge, or discard this patch.
src/Auth/Exception/AccountLockedException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
37 37
  * @class AccountLockedException
38 38
  * @package Platine\Framework\Auth\Exception
39 39
  */
40
-class AccountLockedException extends AuthenticationException
41
-{
40
+class AccountLockedException extends AuthenticationException {
42 41
 }
Please login to merge, or discard this patch.
src/Auth/Authorization/SessionAuthorization.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
  * class SessionAuthorization
55 55
  * @package Platine\Framework\Auth\Authorization
56 56
  */
57
-class SessionAuthorization implements AuthorizationInterface
58
-{
57
+class SessionAuthorization implements AuthorizationInterface {
59 58
 
60 59
     /**
61 60
      * The session instance to use
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
@@ -163,11 +163,11 @@
 block discarded – undo
163 163
         }
164 164
 
165 165
         $data = [
166
-          'id' => $user->id,
167
-          'username' => $user->username,
168
-          'lastname' => $user->lastname,
169
-          'firstname' => $user->firstname,
170
-          'permissions' => array_unique($permissions),
166
+            'id' => $user->id,
167
+            'username' => $user->username,
168
+            'lastname' => $user->lastname,
169
+            'firstname' => $user->firstname,
170
+            'permissions' => array_unique($permissions),
171 171
         ];
172 172
 
173 173
         $this->session->set('user', $data);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
61 61
  * class SessionAuthentication
62 62
  * @package Platine\Framework\Auth\Authentication
63 63
  */
64
-class SessionAuthentication implements AuthenticationInterface
65
-{
64
+class SessionAuthentication implements AuthenticationInterface {
66 65
 
67 66
     /**
68 67
      * The session instance to use
Please login to merge, or discard this patch.
src/Demo/Action/User/LoginAction.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
             $this->template,
117 117
             'user/login',
118 118
             [
119
-               'param' => $formParam
119
+                'param' => $formParam
120 120
             ]
121 121
         );
122 122
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,7 @@
 block discarded – undo
71 71
  * @package Platine\Framework\Demo\Action\User
72 72
  * @template T
73 73
  */
74
-class LoginAction implements RequestHandlerInterface
75
-{
74
+class LoginAction implements RequestHandlerInterface {
76 75
 
77 76
     /**
78 77
      * The logger instance
Please login to merge, or discard this patch.
src/Demo/Action/User/DetailAction.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
     {
47 47
         $id = (int) $request->getAttribute('id');
48 48
         $user = $this->userRepository
49
-                     ->with('roles')
50
-                     ->find($id);
49
+                        ->with('roles')
50
+                        ->find($id);
51 51
         if (!$user) {
52 52
             $this->session->setFlash('error', 'Can not find the user');
53 53
             $this->logger->warning('Can not find user with id {id}', ['id' => $id]);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@
 block discarded – undo
63 63
  * @package Platine\Framework\Demo\Action\User
64 64
  * @template T
65 65
  */
66
-class DetailAction implements RequestHandlerInterface
67
-{
66
+class DetailAction implements RequestHandlerInterface {
68 67
 
69 68
     /**
70 69
      * The logger instance
Please login to merge, or discard this patch.
src/Http/Exception/HttpException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
  * @class HttpException
42 42
  * @package Platine\Framework\Http\Exception
43 43
  */
44
-class HttpException extends Exception
45
-{
44
+class HttpException extends Exception {
46 45
     /**
47 46
      * The instance of server request that throw this exception
48 47
      * @var ServerRequestInterface
Please login to merge, or discard this patch.