Test Failed
Push — develop ( 8ed58c...b4c0f5 )
by nguereza
02:55
created
src/Audit/SessionUser.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
  * @class SessionUser
54 54
  * @package Platine\Framework\Audit
55 55
  */
56
-class SessionUser implements AuditUserInterface
57
-{
56
+class SessionUser implements AuditUserInterface {
58 57
     /**
59 58
      * The Authentication instance
60 59
      * @var AuthenticationInterface
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
      * Create new instance
67 66
      * @param AuthenticationInterface $authentication
68 67
      */
69
-    public function __construct(AuthenticationInterface $authentication)
70
-    {
68
+    public function __construct(AuthenticationInterface $authentication) {
71 69
         $this->authentication = $authentication;
72 70
     }
73 71
 
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/Audit/ApiUser.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
  * @class ApiUser
54 54
  * @package Platine\Framework\Audit
55 55
  */
56
-class ApiUser implements AuditUserInterface
57
-{
56
+class ApiUser implements AuditUserInterface {
58 57
     /**
59 58
      * The API Authentication instance
60 59
      * @var ApiAuthenticationInterface
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
      * Create new instance
67 66
      * @param ApiAuthenticationInterface $authentication
68 67
      */
69
-    public function __construct(ApiAuthenticationInterface $authentication)
70
-    {
68
+    public function __construct(ApiAuthenticationInterface $authentication) {
71 69
         $this->authentication = $authentication;
72 70
     }
73 71
 
Please login to merge, or discard this patch.
src/Security/Csrf/CsrfManager.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         ?CsrfStorageInterface $storage = null
88 88
     ) {
89 89
         $this->config = $config;
90
-        $this->storage = $storage ??  new CsrfNullStorage();
90
+        $this->storage = $storage ?? new CsrfNullStorage();
91 91
     }
92 92
 
93 93
     /**
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@  discard block
 block discarded – undo
57 57
  * @class CsrfManager
58 58
  * @package Platine\Framework\Security\Csrf
59 59
  */
60
-class CsrfManager
61
-{
60
+class CsrfManager {
62 61
     /**
63 62
      * The application configuration class
64 63
      * @var Config
@@ -179,8 +178,7 @@  discard block
 block discarded – undo
179 178
      * @param string $key
180 179
      * @return mixed
181 180
      */
182
-    private function getConfigValue(string $key)
183
-    {
181
+    private function getConfigValue(string $key) {
184 182
         $config = $this->config->get('security.csrf', []);
185 183
 
186 184
         return $config[$key] ?? null;
Please login to merge, or discard this patch.
src/Security/Csrf/CsrfStorageInterface.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 CsrfStorageInterface
52 52
  * @package Platine\Framework\Security\Csrf
53 53
  */
54
-interface CsrfStorageInterface
55
-{
54
+interface CsrfStorageInterface {
56 55
     /**
57 56
      * Return the token information from storage
58 57
      * @param string $name
Please login to merge, or discard this patch.
src/Security/Csrf/Storage/CsrfSessionStorage.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
  * @class CsrfSessionStorage
55 55
  * @package Platine\Framework\Security\Csrf\Storage
56 56
  */
57
-class CsrfSessionStorage implements CsrfStorageInterface
58
-{
57
+class CsrfSessionStorage implements CsrfStorageInterface {
59 58
     /**
60 59
      * The session key used to store CSRF data
61 60
      */
@@ -72,8 +71,7 @@  discard block
 block discarded – undo
72 71
      * Create new instance
73 72
      * @param Session $session
74 73
      */
75
-    public function __construct(Session $session)
76
-    {
74
+    public function __construct(Session $session) {
77 75
         $this->session = $session;
78 76
     }
79 77
 
Please login to merge, or discard this patch.
src/Security/Csrf/Storage/CsrfNullStorage.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * @class CsrfNullStorage
54 54
  * @package Platine\Framework\Security\Csrf\Storage
55 55
  */
56
-class CsrfNullStorage implements CsrfStorageInterface
57
-{
56
+class CsrfNullStorage implements CsrfStorageInterface {
58 57
     /**
59 58
      * The CSRF data
60 59
      * @var array<string, array<string, int|mixed>
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
      */
75 75
     public function set(string $name, string $token, int $expire): void
76 76
     {
77
-         $this->data[$name] = $token;
77
+            $this->data[$name] = $token;
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.