Passed
Push — develop ( 58cba6...dd1d01 )
by nguereza
12:49
created
src/Rule/NotMatches.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 NotMatches
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class NotMatches implements RuleInterface
57
-{
56
+class NotMatches implements RuleInterface {
58 57
     /**
59 58
      * Field to compare against
60 59
      * @var string
@@ -65,8 +64,7 @@  discard block
 block discarded – undo
65 64
      * Constructor
66 65
      * @param string $field the field to compare against
67 66
      */
68
-    public function __construct(string $field)
69
-    {
67
+    public function __construct(string $field) {
70 68
         $this->field = $field;
71 69
     }
72 70
 
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,8 +53,7 @@  discard block
 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
      * The length
60 59
      * @var int
@@ -65,8 +64,7 @@  discard block
 block discarded – undo
65 64
      * Constructor
66 65
      * @param int $length
67 66
      */
68
-    public function __construct(int $length)
69
-    {
67
+    public function __construct(int $length) {
70 68
         $this->length = $length;
71 69
     }
72 70
 
Please login to merge, or discard this patch.
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/Date.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 Date
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class Date implements RuleInterface
57
-{
56
+class Date implements RuleInterface {
58 57
     /**
59 58
      * The date format to validate
60 59
      * @var string
@@ -65,8 +64,7 @@  discard block
 block discarded – undo
65 64
      * Constructor
66 65
      * @param string $format the date format
67 66
      */
68
-    public function __construct(string $format)
69
-    {
67
+    public function __construct(string $format) {
70 68
         $this->format = $format;
71 69
     }
72 70
 
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/Min.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,13 +59,13 @@
 block discarded – undo
59 59
      * Value to compare against
60 60
      * @var string|float|int|bool|null
61 61
      */
62
-    protected string|float|int|bool|null $value;
62
+    protected string | float | int | bool | null $value;
63 63
 
64 64
     /**
65 65
      * Constructor
66 66
      * @param string|float|int|bool|null $value the value to compare against
67 67
      */
68
-    public function __construct(string|float|int|bool|null $value)
68
+    public function __construct(string | float | int | bool | null $value)
69 69
     {
70 70
         $this->value = $value;
71 71
     }
Please login to merge, or discard this 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 Min
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class Min implements RuleInterface
57
-{
56
+class Min implements RuleInterface {
58 57
     /**
59 58
      * Value to compare against
60 59
      * @var string|float|int|bool|null
@@ -65,8 +64,7 @@  discard block
 block discarded – undo
65 64
      * Constructor
66 65
      * @param string|float|int|bool|null $value the value to compare against
67 66
      */
68
-    public function __construct(string|float|int|bool|null $value)
69
-    {
67
+    public function __construct(string|float|int|bool|null $value) {
70 68
         $this->value = $value;
71 69
     }
72 70
 
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
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
      */
77 77
     public function validate(string $field, mixed $value, Validator $validator): bool
78 78
     {
79
-        return (bool) preg_match($this->regex, (string)$value);
79
+        return (bool) preg_match($this->regex, (string) $value);
80 80
     }
81 81
 
82 82
     /**
Please login to merge, or discard this 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 Regex
54 54
  * @package Platine\Validator\Rule
55 55
  */
56
-class Regex implements RuleInterface
57
-{
56
+class Regex implements RuleInterface {
58 57
     /**
59 58
      * The regex pattern
60 59
      * @var string
@@ -65,8 +64,7 @@  discard block
 block discarded – undo
65 64
      * Constructor
66 65
      * @param string $regex the regex pattern
67 66
      */
68
-    public function __construct(string $regex)
69
-    {
67
+    public function __construct(string $regex) {
70 68
         $this->regex = $regex;
71 69
     }
72 70
 
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.