Passed
Push — develop ( dd1d01...9e310a )
by nguereza
10:33
created
src/Rule/Enum.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@  discard block
 block discarded – undo
55 55
  * @class Enum
56 56
  * @package Platine\Validator\Rule
57 57
  */
58
-class Enum implements RuleInterface
59
-{
58
+class Enum implements RuleInterface {
60 59
     /**
61 60
      * the list to match
62 61
      * @var array<mixed>
@@ -67,8 +66,7 @@  discard block
 block discarded – undo
67 66
      * Constructor
68 67
      * @param class-string<object> $enumClass the enumeration class
69 68
      */
70
-    public function __construct(protected string $enumClass)
71
-    {
69
+    public function __construct(protected string $enumClass) {
72 70
         $this->enumClass = $enumClass;
73 71
     }
74 72
 
Please login to merge, or discard this patch.
src/Rule/Min.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      * Constructor
60 60
      * @param string|float|int|bool|null $value the value to compare against
61 61
      */
62
-    public function __construct(protected string|float|int|bool|null $value)
62
+    public function __construct(protected string | float | int | bool | null $value)
63 63
     {
64 64
         $this->value = $value;
65 65
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,14 +53,12 @@
 block discarded – undo
53 53
  * @class Min
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class Min implements RuleInterface
57
-{
56
+class Min implements RuleInterface {
58 57
     /**
59 58
      * Constructor
60 59
      * @param string|float|int|bool|null $value the value to compare against
61 60
      */
62
-    public function __construct(protected string|float|int|bool|null $value)
63
-    {
61
+    public function __construct(protected string|float|int|bool|null $value) {
64 62
         $this->value = $value;
65 63
     }
66 64
 
Please login to merge, or discard this patch.
src/Rule/Password.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 Password
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class Password implements RuleInterface
57
-{
56
+class Password implements RuleInterface {
58 57
     /*
59 58
      * The error type list
60 59
      */
@@ -74,8 +73,7 @@  discard block
 block discarded – undo
74 73
      * Constructor
75 74
      * @param array<string, bool|int> $rules
76 75
      */
77
-    public function __construct(protected array $rules = [])
78
-    {
76
+    public function __construct(protected array $rules = []) {
79 77
         $this->rules = array_merge([
80 78
             'length' => 5,
81 79
             'uppercase' => false,
Please login to merge, or discard this patch.
src/Rule/ExactLength.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,14 +53,12 @@
 block discarded – undo
53 53
  * @class ExactLength
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class ExactLength implements RuleInterface
57
-{
56
+class ExactLength implements RuleInterface {
58 57
     /**
59 58
      * Constructor
60 59
      * @param int $length
61 60
      */
62
-    public function __construct(protected int $length)
63
-    {
61
+    public function __construct(protected int $length) {
64 62
         $this->length = $length;
65 63
     }
66 64
 
Please login to merge, or discard this patch.
src/Rule/Matches.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,14 +53,12 @@
 block discarded – undo
53 53
  * @class Matches
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class Matches implements RuleInterface
57
-{
56
+class Matches implements RuleInterface {
58 57
     /**
59 58
      * Constructor
60 59
      * @param string $field the field to compare against
61 60
      */
62
-    public function __construct(protected string $field)
63
-    {
61
+    public function __construct(protected string $field) {
64 62
         $this->field = $field;
65 63
     }
66 64
 
Please login to merge, or discard this patch.
src/Rule/NotMatches.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,14 +53,12 @@
 block discarded – undo
53 53
  * @class NotMatches
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class NotMatches implements RuleInterface
57
-{
56
+class NotMatches implements RuleInterface {
58 57
     /**
59 58
      * Constructor
60 59
      * @param string $field the field to compare against
61 60
      */
62
-    public function __construct(protected string $field)
63
-    {
61
+    public function __construct(protected string $field) {
64 62
         $this->field = $field;
65 63
     }
66 64
 
Please login to merge, or discard this patch.
src/Rule/NotEqual.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,14 +53,12 @@
 block discarded – undo
53 53
  * @class NotEqual
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class NotEqual implements RuleInterface
57
-{
56
+class NotEqual implements RuleInterface {
58 57
     /**
59 58
      * Constructor
60 59
      * @param mixed $value the value to compare against
61 60
      */
62
-    public function __construct(protected mixed $value)
63
-    {
61
+    public function __construct(protected mixed $value) {
64 62
         $this->value = $value;
65 63
     }
66 64
 
Please login to merge, or discard this patch.
src/Rule/MaxLength.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,14 +53,12 @@
 block discarded – undo
53 53
  * @class MaxLength
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class MaxLength implements RuleInterface
57
-{
56
+class MaxLength implements RuleInterface {
58 57
     /**
59 58
      * Constructor
60 59
      * @param int $length
61 60
      */
62
-    public function __construct(protected int $length)
63
-    {
61
+    public function __construct(protected int $length) {
64 62
         $this->length = $length;
65 63
     }
66 64
 
Please login to merge, or discard this patch.
src/Rule/MinLength.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,14 +53,12 @@
 block discarded – undo
53 53
  * @class MinLength
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class MinLength implements RuleInterface
57
-{
56
+class MinLength implements RuleInterface {
58 57
     /**
59 58
      * Constructor
60 59
      * @param int $length
61 60
      */
62
-    public function __construct(protected int $length)
63
-    {
61
+    public function __construct(protected int $length) {
64 62
         $this->length = $length;
65 63
     }
66 64
 
Please login to merge, or discard this patch.