Passed
Push — develop ( e80e4b...8c7497 )
by nguereza
11:11
created
src/Rule/AlphaNumeric.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * @class AlphaNumeric
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class AlphaNumeric implements RuleInterface
57
-{
56
+class AlphaNumeric implements RuleInterface {
58 57
     /**
59 58
      * String pattern to allow
60 59
      * @var string
Please login to merge, or discard this patch.
src/Rule/AlphaDash.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * @class AlphaDash
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class AlphaDash implements RuleInterface
57
-{
56
+class AlphaDash implements RuleInterface {
58 57
     /**
59 58
      * String pattern to allow
60 59
      * @var string
Please login to merge, or discard this patch.
src/Rule/Email.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * @class Email
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class Email implements RuleInterface
57
-{
56
+class Email implements RuleInterface {
58 57
     /**
59 58
      * {@inheritdoc}
60 59
      * @see RuleInterface
Please login to merge, or discard this patch.
src/Rule/NotEmpty.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * @class NotEmpty
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class NotEmpty implements RuleInterface
57
-{
56
+class NotEmpty implements RuleInterface {
58 57
     /**
59 58
      * {@inheritdoc}
60 59
      * @see RuleInterface
Please login to merge, or discard this patch.
src/Rule/Number.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * @class Number
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class Number implements RuleInterface
57
-{
56
+class Number implements RuleInterface {
58 57
     /**
59 58
      * {@inheritdoc}
60 59
      * @see RuleInterface
Please login to merge, or discard this patch.
src/Rule/Uuid.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
  * @class Uuid
55 55
  * @package Platine\Validator\Rule
56 56
  */
57
-class Uuid implements RuleInterface
58
-{
57
+class Uuid implements RuleInterface {
59 58
     /**
60 59
      * {@inheritdoc}
61 60
      * @see RuleInterface
Please login to merge, or discard this patch.
src/Rule/Range.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * @class Range
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class Range implements RuleInterface
57
-{
56
+class Range implements RuleInterface {
58 57
     /**
59 58
      * Constructor
60 59
      * @param string|float|int|bool|null $min the minimum value to compare against
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@
 block discarded – undo
61 61
      * @param string|float|int|bool|null $max the maximum value to compare against
62 62
      */
63 63
     public function __construct(
64
-        protected string|float|int|bool|null $min,
65
-        protected string|float|int|bool|null $max
64
+        protected string | float | int | bool | null $min,
65
+        protected string | float | int | bool | null $max
66 66
     ) {
67 67
     }
68 68
 
Please login to merge, or discard this patch.
src/Rule/Regex.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
             return true;
75 75
         }
76 76
 
77
-        return (bool) preg_match($this->regex, (string)$value);
77
+        return (bool) preg_match($this->regex, (string) $value);
78 78
     }
79 79
 
80 80
     /**
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 Regex
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class Regex implements RuleInterface
57
-{
56
+class Regex implements RuleInterface {
58 57
     /**
59 58
      * Constructor
60 59
      * @param string $regex the regex pattern
61 60
      */
62
-    public function __construct(protected string $regex)
63
-    {
61
+    public function __construct(protected string $regex) {
64 62
     }
65 63
 
66 64
     /**
Please login to merge, or discard this patch.
src/Validator.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
  * associated metadata for ensuring that a given data set
57 57
  * is valid and returned correctly.
58 58
  */
59
-class Validator
60
-{
59
+class Validator {
61 60
     /**
62 61
      * The data to validate
63 62
      * @var array<string, mixed>
Please login to merge, or discard this patch.