Test Failed
Push — develop ( 237ade...dd0b74 )
by nguereza
03:24
created
src/Auth/Repository/TokenRepository.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,14 +56,12 @@
 block discarded – undo
56 56
  * @package Platine\Framework\Auth\Repository
57 57
  * @extends Repository<Token>
58 58
  */
59
-class TokenRepository extends Repository
60
-{
59
+class TokenRepository extends Repository {
61 60
     /**
62 61
      * Create new instance
63 62
      * @param EntityManager<Token> $manager
64 63
      */
65
-    public function __construct(EntityManager $manager)
66
-    {
64
+    public function __construct(EntityManager $manager) {
67 65
         parent::__construct($manager, Token::class);
68 66
     }
69 67
 }
Please login to merge, or discard this patch.
src/Auth/Repository/RoleRepository.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,14 +56,12 @@
 block discarded – undo
56 56
  * @package Platine\Framework\Auth\Repository
57 57
  * @extends Repository<Role>
58 58
  */
59
-class RoleRepository extends Repository
60
-{
59
+class RoleRepository extends Repository {
61 60
     /**
62 61
      * Create new instance
63 62
      * @param EntityManager<Role> $manager
64 63
      */
65
-    public function __construct(EntityManager $manager)
66
-    {
64
+    public function __construct(EntityManager $manager) {
67 65
         parent::__construct($manager, Role::class);
68 66
     }
69 67
 }
Please login to merge, or discard this patch.
src/Auth/Repository/UserRepository.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,14 +56,12 @@
 block discarded – undo
56 56
  * @package Platine\Framework\Auth\Repository
57 57
  * @extends Repository<User>
58 58
  */
59
-class UserRepository extends Repository
60
-{
59
+class UserRepository extends Repository {
61 60
     /**
62 61
      * Create new instance
63 62
      * @param EntityManager<User> $manager
64 63
      */
65
-    public function __construct(EntityManager $manager)
66
-    {
64
+    public function __construct(EntityManager $manager) {
67 65
         parent::__construct($manager, User::class);
68 66
     }
69 67
 }
Please login to merge, or discard this patch.
src/Auth/Repository/PermissionRepository.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,14 +56,12 @@
 block discarded – undo
56 56
  * @package Platine\Framework\Auth\Repository
57 57
  * @extends Repository<Permission>
58 58
  */
59
-class PermissionRepository extends Repository
60
-{
59
+class PermissionRepository extends Repository {
61 60
     /**
62 61
      * Create new instance
63 62
      * @param EntityManager<Permission> $manager
64 63
      */
65
-    public function __construct(EntityManager $manager)
66
-    {
64
+    public function __construct(EntityManager $manager) {
67 65
         parent::__construct($manager, Permission::class);
68 66
     }
69 67
 }
Please login to merge, or discard this patch.
src/Auth/Entity/Role.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * @package Platine\Framework\Auth\Entity
56 56
  * @extends Entity<Role>
57 57
  */
58
-class Role extends Entity
59
-{
58
+class Role extends Entity {
60 59
     /**
61 60
      *
62 61
      * @param EntityMapperInterface<Role> $mapper
Please login to merge, or discard this patch.
src/Auth/Entity/Permission.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * @package Platine\Framework\Auth\Entity
56 56
  * @extends Entity<Permission>
57 57
  */
58
-class Permission extends Entity
59
-{
58
+class Permission extends Entity {
60 59
     /**
61 60
      *
62 61
      * @param EntityMapperInterface<Permission> $mapper
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 
80 80
 
81 81
         $mapper->filter('parent', function (Query $q, $value) {
82
-             $q->where('parent_id')->is($value);
82
+                $q->where('parent_id')->is($value);
83 83
         });
84 84
     }
85 85
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         ]));
79 79
 
80 80
 
81
-        $mapper->filter('parent', function (Query $q, $value) {
81
+        $mapper->filter('parent', function(Query $q, $value) {
82 82
              $q->where('parent_id')->is($value);
83 83
         });
84 84
     }
Please login to merge, or discard this patch.
src/Migration/MigrationRepository.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,14 +55,12 @@
 block discarded – undo
55 55
  * @package Platine\Framework\Migration
56 56
  * @extends Repository<MigrationEntity>
57 57
  */
58
-class MigrationRepository extends Repository
59
-{
58
+class MigrationRepository extends Repository {
60 59
     /**
61 60
      * Create new instance
62 61
      * @param EntityManager<MigrationEntity> $manager
63 62
      */
64
-    public function __construct(EntityManager $manager)
65
-    {
63
+    public function __construct(EntityManager $manager) {
66 64
         parent::__construct($manager, MigrationEntity::class);
67 65
     }
68 66
 }
Please login to merge, or discard this patch.
src/Migration/MigrationEntity.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
  * @package Platine\Framework\Migration
57 57
  * @extends Entity<MigrationEntity>
58 58
  */
59
-class MigrationEntity extends Entity
60
-{
59
+class MigrationEntity extends Entity {
61 60
     /**
62 61
      *
63 62
      * @param EntityMapperInterface<MigrationEntity> $mapper
Please login to merge, or discard this patch.
src/Audit/Model/Audit.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
  * @package Platine\Framework\Audit\Model
58 58
  * @extends Entity<Audit>
59 59
  */
60
-class Audit extends Entity
61
-{
60
+class Audit extends Entity {
62 61
     /**
63 62
      *
64 63
      * @param EntityMapperInterface<Audit> $mapper
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,24 +73,24 @@
 block discarded – undo
73 73
             'date' => 'date',
74 74
         ]);
75 75
 
76
-        $mapper->filter('start_date', function (Query $q, $value) {
76
+        $mapper->filter('start_date', function(Query $q, $value) {
77 77
             $q->where('date')->gte($value);
78 78
         });
79 79
 
80
-        $mapper->filter('end_date', function (Query $q, $value) {
80
+        $mapper->filter('end_date', function(Query $q, $value) {
81 81
             $q->where('date')->lte($value);
82 82
         });
83 83
 
84
-        $mapper->filter('event', function (Query $q, $value) {
84
+        $mapper->filter('event', function(Query $q, $value) {
85 85
             $q->where('event')->is($value);
86 86
         });
87 87
 
88
-        $mapper->filter('user', function (Query $q, $value) {
88
+        $mapper->filter('user', function(Query $q, $value) {
89 89
             $q->where('user_id')->is($value);
90 90
         });
91 91
 
92
-        $mapper->filter('search', function (Query $p, $value) {
93
-            $p->where(function (WhereStatement $where) use ($value) {
92
+        $mapper->filter('search', function(Query $p, $value) {
93
+            $p->where(function(WhereStatement $where) use ($value) {
94 94
                 $where->where('ip')->like(sprintf('%%%s%%', $value));
95 95
                 $where->orWhere('detail')->like(sprintf('%%%s%%', $value));
96 96
                 $where->orWhere('url')->like(sprintf('%%%s%%', $value));
Please login to merge, or discard this patch.