Passed
Push — develop ( a52f7d...7316b8 )
by nguereza
05:38 queued 01:59
created
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.
src/Helper/Timer/Watch.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -142,10 +142,10 @@
 block discarded – undo
142 142
     }
143 143
 
144 144
     /**
145
-    * Get watch
146
-    * @param string $name
147
-    * @return Timer
148
-    */
145
+     * Get watch
146
+     * @param string $name
147
+     * @return Timer
148
+     */
149 149
     public function getWatch(string $name): Timer
150 150
     {
151 151
         if (array_key_exists($name, $this->timers) === false) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
  * @class Watch
55 55
  * @package Platine\Framework\Helper\Timer
56 56
  */
57
-class Watch
58
-{
57
+class Watch {
59 58
     /**
60 59
      * The default name to use if none is provided
61 60
      */
Please login to merge, or discard this patch.
src/Helper/Timer/Timer.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 Timer
55 55
  * @package Platine\Framework\Helper\Timer
56 56
  */
57
-class Timer
58
-{
57
+class Timer {
59 58
     public const NOT_STARTED = 0;
60 59
     public const STARTED = 1;
61 60
     public const PAUSED = 2;
@@ -89,8 +88,7 @@  discard block
 block discarded – undo
89 88
      * Create new timer instance
90 89
      * @param string $name
91 90
      */
92
-    public function __construct(string $name)
93
-    {
91
+    public function __construct(string $name) {
94 92
         $this->name = $name;
95 93
     }
96 94
 
Please login to merge, or discard this patch.