Passed
Push — develop ( e28085...b72380 )
by nguereza
08:51
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/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   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
  * @package Platine\Framework\Security\Csrf
60 60
  * @template T
61 61
  */
62
-class CsrfManager
63
-{
62
+class CsrfManager {
64 63
     /**
65 64
      * The application configuration class
66 65
      * @var Config<T>
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/CsrfNullStorage.php 2 patches
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.
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, string>
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/Http/Maintenance/MaintenanceDriverInterface.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 MaintenanceDriverInterface
52 52
  * @package Platine\Framework\Http\Maintenance
53 53
  */
54
-interface MaintenanceDriverInterface
55
-{
54
+interface MaintenanceDriverInterface {
56 55
     /**
57 56
      * Whether the maintenance is active or not
58 57
      * @return bool
Please login to merge, or discard this patch.
src/Config/Model/ConfigurationRepository.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,14 +57,12 @@
 block discarded – undo
57 57
  * @extends Repository<Configuration>
58 58
  * @implements ConfigurationRepositoryInterface<Configuration>
59 59
  */
60
-class ConfigurationRepository extends Repository implements ConfigurationRepositoryInterface
61
-{
60
+class ConfigurationRepository extends Repository implements ConfigurationRepositoryInterface {
62 61
     /**
63 62
      * Create new instance
64 63
      * @param EntityManager<Configuration> $manager
65 64
      */
66
-    public function __construct(EntityManager $manager)
67
-    {
65
+    public function __construct(EntityManager $manager) {
68 66
         parent::__construct($manager, Configuration::class);
69 67
     }
70 68
 }
Please login to merge, or discard this patch.
src/Config/ConfigurationRepositoryInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,6 +55,5 @@
 block discarded – undo
55 55
  * @template TDbConfigurationEntity as \Platine\Orm\Entity
56 56
  * @extends RepositoryInterface<TDbConfigurationEntity>
57 57
  */
58
-interface ConfigurationRepositoryInterface extends RepositoryInterface
59
-{
58
+interface ConfigurationRepositoryInterface extends RepositoryInterface {
60 59
 }
Please login to merge, or discard this patch.
src/Console/BaseCommand.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
  * @class BaseCommand
58 58
  * @package Platine\Framework\Console
59 59
  */
60
-abstract class BaseCommand extends Command
61
-{
60
+abstract class BaseCommand extends Command {
62 61
     /**
63 62
      * The Application instance
64 63
      * @var Application
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      * @param string|object $fullClassName
100 100
      * @return string
101 101
      */
102
-    public function getClassBaseName(string|object $fullClassName): string
102
+    public function getClassBaseName(string | object $fullClassName): string
103 103
     {
104 104
         if (is_object($fullClassName)) {
105 105
             $fullClassName = get_class($fullClassName);
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      * @param string|array<string> $data
219 219
      * @return void
220 220
      */
221
-    public function setReaderContent(Reader $reader, string $filename, string|array $data): void
221
+    public function setReaderContent(Reader $reader, string $filename, string | array $data): void
222 222
     {
223 223
         if (is_array($data)) {
224 224
             $data = implode(PHP_EOL, $data);
Please login to merge, or discard this patch.