Test Failed
Push — develop ( f013d6...41fb7d )
by nguereza
02:54
created
src/Config/DatabaseConfigLoader.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
  * @class DatabaseConfigLoader
55 55
  * @package Platine\Framework\Config
56 56
  */
57
-class DatabaseConfigLoader implements DatabaseConfigLoaderInterface
58
-{
57
+class DatabaseConfigLoader implements DatabaseConfigLoaderInterface {
59 58
 
60 59
     /**
61 60
      * The Repository instance
@@ -68,8 +67,7 @@  discard block
 block discarded – undo
68 67
      * Create new instance
69 68
      * @param DatabaseConfigRepository $repository
70 69
      */
71
-    public function __construct(DatabaseConfigRepository $repository)
72
-    {
70
+    public function __construct(DatabaseConfigRepository $repository) {
73 71
         $this->repository = $repository;
74 72
     }
75 73
 
@@ -92,8 +90,7 @@  discard block
 block discarded – undo
92 90
     /**
93 91
      * {@inheritdoc}
94 92
      */
95
-    public function insertConfig(array $data)
96
-    {
93
+    public function insertConfig(array $data) {
97 94
         $entity = $this->repository->create($data);
98 95
         return $this->repository->insert($entity);
99 96
     }
@@ -153,8 +150,7 @@  discard block
 block discarded – undo
153 150
      * @param string $type
154 151
      * @return mixed
155 152
      */
156
-    protected function convertToDataType($value, string $type)
157
-    {
153
+    protected function convertToDataType($value, string $type) {
158 154
         switch ($type) {
159 155
             case 'integer':
160 156
                 $value = intval($value);
Please login to merge, or discard this patch.
src/Template/Tag/SessionTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     protected string $name;
27 27
 
28 28
     /**
29
-    * {@inheritdoc}
30
-    */
29
+     * {@inheritdoc}
30
+     */
31 31
     public function __construct(string $markup, &$tokens, Parser $parser)
32 32
     {
33 33
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class SessionTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class SessionTag extends AbstractTag
63
-{
62
+class SessionTag extends AbstractTag {
64 63
 
65 64
     /**
66 65
      * The key of the session
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
     /**
72 71
     * {@inheritdoc}
73 72
     */
74
-    public function __construct(string $markup, &$tokens, Parser $parser)
75
-    {
73
+    public function __construct(string $markup, &$tokens, Parser $parser) {
76 74
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
77 75
         if ($lexer->match($markup)) {
78 76
             $this->name = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Template/Tag/LangTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
     protected string $value;
28 28
 
29 29
     /**
30
-    * {@inheritdoc}
31
-    */
30
+     * {@inheritdoc}
31
+     */
32 32
     public function __construct(string $markup, &$tokens, Parser $parser)
33 33
     {
34 34
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class LangTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class LangTag extends AbstractTag
63
-{
62
+class LangTag extends AbstractTag {
64 63
 
65 64
     /**
66 65
      * Value to debug
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
     /**
72 71
     * {@inheritdoc}
73 72
     */
74
-    public function __construct(string $markup, &$tokens, Parser $parser)
75
-    {
73
+    public function __construct(string $markup, &$tokens, Parser $parser) {
76 74
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
77 75
         if ($lexer->match($markup)) {
78 76
             $this->value = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Template/Tag/StaticTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
     protected string $path;
26 26
 
27 27
     /**
28
-    * {@inheritdoc}
29
-    */
28
+     * {@inheritdoc}
29
+     */
30 30
     public function __construct(string $markup, &$tokens, Parser $parser)
31 31
     {
32 32
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class StaticTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class StaticTag extends AbstractTag
63
-{
62
+class StaticTag extends AbstractTag {
64 63
 
65 64
     /**
66 65
      * The static path
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
     /**
72 71
     * {@inheritdoc}
73 72
     */
74
-    public function __construct(string $markup, &$tokens, Parser $parser)
75
-    {
73
+    public function __construct(string $markup, &$tokens, Parser $parser) {
76 74
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
77 75
         if ($lexer->match($markup)) {
78 76
             $this->path = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Template/Tag/SessionFlashTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     protected string $name;
27 27
 
28 28
     /**
29
-    * {@inheritdoc}
30
-    */
29
+     * {@inheritdoc}
30
+     */
31 31
     public function __construct(string $markup, &$tokens, Parser $parser)
32 32
     {
33 33
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class SessionFlashTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class SessionFlashTag extends AbstractTag
63
-{
62
+class SessionFlashTag extends AbstractTag {
64 63
 
65 64
     /**
66 65
      * The key of the session
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
     /**
72 71
     * {@inheritdoc}
73 72
     */
74
-    public function __construct(string $markup, &$tokens, Parser $parser)
75
-    {
73
+    public function __construct(string $markup, &$tokens, Parser $parser) {
76 74
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
77 75
         if ($lexer->match($markup)) {
78 76
             $this->name = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Template/Tag/RouteUrlTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     protected string $name;
27 27
 
28 28
     /**
29
-    * {@inheritdoc}
30
-    */
29
+     * {@inheritdoc}
30
+     */
31 31
     public function __construct(string $markup, &$tokens, Parser $parser)
32 32
     {
33 33
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @class RouteUrlTag
60 60
  * @package Platine\Framework\Template\Tag
61 61
  */
62
-class RouteUrlTag extends AbstractTag
63
-{
62
+class RouteUrlTag extends AbstractTag {
64 63
 
65 64
     /**
66 65
      * The name of the route
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
     /**
72 71
     * {@inheritdoc}
73 72
     */
74
-    public function __construct(string $markup, &$tokens, Parser $parser)
75
-    {
73
+    public function __construct(string $markup, &$tokens, Parser $parser) {
76 74
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
77 75
         if ($lexer->match($markup)) {
78 76
             $this->name = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
storage/migrations/20210720_080304_add_user_role_field.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,18 +10,18 @@
 block discarded – undo
10 10
 
11 11
     public function up(): void
12 12
     {
13
-      //Action when migrate up
13
+        //Action when migrate up
14 14
         $this->alter('users', function (AlterTable $table) {
15 15
             $table->string('role')
16
-                 ->description('The user role or function');
16
+                    ->description('The user role or function');
17 17
         });
18 18
     }
19 19
 
20 20
     public function down(): void
21 21
     {
22
-      //Action when migrate down
22
+        //Action when migrate down
23 23
         $this->alter('users', function (AlterTable $table) {
24
-             $table->dropColumn('role');
24
+                $table->dropColumn('role');
25 25
         });
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     public function up(): void
12 12
     {
13 13
       //Action when migrate up
14
-        $this->alter('users', function (AlterTable $table) {
14
+        $this->alter('users', function(AlterTable $table) {
15 15
             $table->string('role')
16 16
                  ->description('The user role or function');
17 17
         });
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public function down(): void
21 21
     {
22 22
       //Action when migrate down
23
-        $this->alter('users', function (AlterTable $table) {
23
+        $this->alter('users', function(AlterTable $table) {
24 24
              $table->dropColumn('role');
25 25
         });
26 26
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 use Platine\Database\Schema\AlterTable;
6 6
 use Platine\Framework\Migration\AbstractMigration;
7 7
 
8
-class AddUserRoleField20210720080304 extends AbstractMigration
9
-{
8
+class AddUserRoleField20210720080304 extends AbstractMigration {
10 9
 
11 10
     public function up(): void
12 11
     {
Please login to merge, or discard this patch.
storage/migrations/20210720_080558_drop_user_age_field.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
     public function up(): void
12 12
     {
13
-      //Action when migrate up
13
+        //Action when migrate up
14 14
         $this->alter('users', function (AlterTable $table) {
15 15
             $table->dropColumn('age');
16 16
         });
@@ -18,11 +18,11 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function down(): void
20 20
     {
21
-      //Action when migrate down
21
+        //Action when migrate down
22 22
         $this->alter('users', function (AlterTable $table) {
23 23
             $table->integer('age')
24
-                 ->size('tiny')
25
-                 ->description('The user age');
24
+                    ->size('tiny')
25
+                    ->description('The user age');
26 26
         });
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     public function up(): void
12 12
     {
13 13
       //Action when migrate up
14
-        $this->alter('users', function (AlterTable $table) {
14
+        $this->alter('users', function(AlterTable $table) {
15 15
             $table->dropColumn('age');
16 16
         });
17 17
     }
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public function down(): void
20 20
     {
21 21
       //Action when migrate down
22
-        $this->alter('users', function (AlterTable $table) {
22
+        $this->alter('users', function(AlterTable $table) {
23 23
             $table->integer('age')
24 24
                  ->size('tiny')
25 25
                  ->description('The user age');
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 use Platine\Database\Schema\AlterTable;
6 6
 use Platine\Framework\Migration\AbstractMigration;
7 7
 
8
-class DropUserAgeField20210720080558 extends AbstractMigration
9
-{
8
+class DropUserAgeField20210720080558 extends AbstractMigration {
10 9
 
11 10
     public function up(): void
12 11
     {
Please login to merge, or discard this patch.
src/Auth/Event/AuthInvalidPasswordEvent.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 AuthInvalidPasswordEvent
55 55
  * @package Platine\Framework\Auth\Event
56 56
  */
57
-class AuthInvalidPasswordEvent extends Event
58
-{
57
+class AuthInvalidPasswordEvent extends Event {
59 58
 
60 59
     /**
61 60
      * The authentication user
@@ -67,8 +66,7 @@  discard block
 block discarded – undo
67 66
      * Create new instance
68 67
      * @param User $user
69 68
      */
70
-    public function __construct(User $user)
71
-    {
69
+    public function __construct(User $user) {
72 70
         parent::__construct(__CLASS__, []);
73 71
         $this->user = $user;
74 72
     }
Please login to merge, or discard this patch.