Passed
Push — develop ( 6e46d5...d55787 )
by nguereza
03:20
created
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.
src/Security/Csrf/Storage/CsrfUserSessionStorage.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 CsrfUserSessionStorage
52 52
  * @package Platine\Framework\Security\Csrf\Storage
53 53
  */
54
-class CsrfUserSessionStorage extends CsrfSessionStorage
55
-{
54
+class CsrfUserSessionStorage extends CsrfSessionStorage {
56 55
     /**
57 56
      * {@inheritdoc}
58 57
      */
Please login to merge, or discard this patch.
src/Form/Param/BaseParam.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -59,14 +59,12 @@  discard block
 block discarded – undo
59 59
  * @package Platine\Framework\Form\Param
60 60
  * @template TEntity as Entity
61 61
  */
62
-class BaseParam implements JsonSerializable
63
-{
62
+class BaseParam implements JsonSerializable {
64 63
     /**
65 64
      * Create new instance
66 65
      * @param array<string, mixed> $data
67 66
      */
68
-    public function __construct(array $data = [])
69
-    {
67
+    public function __construct(array $data = []) {
70 68
         // Load default values
71 69
         $this->loadDefaultValues();
72 70
         
@@ -126,8 +124,7 @@  discard block
 block discarded – undo
126 124
      * Convert parameter to JSON array
127 125
      * @return array<string, mixed>
128 126
      */
129
-    public function jsonSerialize()
130
-    {
127
+    public function jsonSerialize() {
131 128
         return $this->data();
132 129
     }
133 130
 
@@ -136,8 +133,7 @@  discard block
 block discarded – undo
136 133
      * @param string $name
137 134
      * @return mixed|null
138 135
      */
139
-    public function __get($name)
140
-    {
136
+    public function __get($name) {
141 137
         if (property_exists($this, $name)) {
142 138
             return $this->{$name};
143 139
         }
@@ -157,8 +153,7 @@  discard block
 block discarded – undo
157 153
      * @param mixed $value
158 154
      * @return mixed
159 155
      */
160
-    protected function getPropertyValue(string $attribute, $value)
161
-    {
156
+    protected function getPropertyValue(string $attribute, $value) {
162 157
         $types = $this->getPropertyTypes();
163 158
         $property = $types[$attribute] ?? null;
164 159
         if ($property === null) {
Please login to merge, or discard this patch.