Passed
Push — develop ( d90dee...8d2d50 )
by nguereza
01:46
created
src/Validator.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
  * associated metadata for ensuring that a given data set
55 55
  * is valid and returned correctly.
56 56
  */
57
-class Validator
58
-{
57
+class Validator {
59 58
     /**
60 59
      * The data to validate
61 60
      * @var array<string, mixed>
@@ -110,8 +109,7 @@  discard block
 block discarded – undo
110 109
      * @param Lang $lang
111 110
      * @param string $langDomain
112 111
      */
113
-    public function __construct(Lang $lang, string $langDomain = 'validators')
114
-    {
112
+    public function __construct(Lang $lang, string $langDomain = 'validators') {
115 113
         $this->lang = $lang;
116 114
         $this->langDomain = $langDomain;
117 115
 
@@ -181,8 +179,7 @@  discard block
 block discarded – undo
181 179
      * @param mixed $default the default value to return if can not find field value
182 180
      * @return mixed
183 181
      */
184
-    public function getData(?string $field = null, $default = null)
185
-    {
182
+    public function getData(?string $field = null, $default = null) {
186 183
         if ($field === null) {
187 184
             return $this->data;
188 185
         }
Please login to merge, or discard this patch.
src/Rule/Integer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
 use Platine\Validator\RuleInterface;
50 50
 use Platine\Validator\Validator;
51 51
 
52
-class Integer implements RuleInterface
53
-{
52
+class Integer implements RuleInterface {
54 53
     /**
55 54
      * {@inheritdoc}
56 55
      * @see RuleInterface
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
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
 use Platine\Validator\RuleInterface;
50 50
 use Platine\Validator\Validator;
51 51
 
52
-class AlphaDash implements RuleInterface
53
-{
52
+class AlphaDash implements RuleInterface {
54 53
     /**
55 54
      * String pattern to allow
56 55
      * @var string
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
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
 use Platine\Validator\RuleInterface;
50 50
 use Platine\Validator\Validator;
51 51
 
52
-class Number implements RuleInterface
53
-{
52
+class Number implements RuleInterface {
54 53
     /**
55 54
      * {@inheritdoc}
56 55
      * @see RuleInterface
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
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
 use Platine\Validator\RuleInterface;
50 50
 use Platine\Validator\Validator;
51 51
 
52
-class Email implements RuleInterface
53
-{
52
+class Email implements RuleInterface {
54 53
     /**
55 54
      * {@inheritdoc}
56 55
      * @see RuleInterface
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
@@ -49,8 +49,7 @@  discard block
 block discarded – undo
49 49
 use Platine\Validator\RuleInterface;
50 50
 use Platine\Validator\Validator;
51 51
 
52
-class Matches implements RuleInterface
53
-{
52
+class Matches implements RuleInterface {
54 53
     /**
55 54
      * Field to compare against
56 55
      * @var string
@@ -61,8 +60,7 @@  discard block
 block discarded – undo
61 60
      * Constructor
62 61
      * @param string $field the field to compare against
63 62
      */
64
-    public function __construct(string $field)
65
-    {
63
+    public function __construct(string $field) {
66 64
         $this->field = $field;
67 65
     }
68 66
 
Please login to merge, or discard this patch.
src/Rule/Alpha.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
 use Platine\Validator\RuleInterface;
50 50
 use Platine\Validator\Validator;
51 51
 
52
-class Alpha implements RuleInterface
53
-{
52
+class Alpha implements RuleInterface {
54 53
     /**
55 54
      * String pattern to allow
56 55
      * @var string
Please login to merge, or discard this patch.
src/Rule/InList.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@  discard block
 block discarded – undo
49 49
 use Platine\Validator\RuleInterface;
50 50
 use Platine\Validator\Validator;
51 51
 
52
-class InList implements RuleInterface
53
-{
52
+class InList implements RuleInterface {
54 53
     /**
55 54
      * The list to match
56 55
      * @var array<mixed>
@@ -61,8 +60,7 @@  discard block
 block discarded – undo
61 60
      * Constructor
62 61
      * @param array<mixed> $list
63 62
      */
64
-    public function __construct(array $list)
65
-    {
63
+    public function __construct(array $list) {
66 64
         $this->list = $list;
67 65
     }
68 66
 
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
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
 use Platine\Validator\RuleInterface;
50 50
 use Platine\Validator\Validator;
51 51
 
52
-class AlphaNumeric implements RuleInterface
53
-{
52
+class AlphaNumeric implements RuleInterface {
54 53
     /**
55 54
      * String pattern to allow
56 55
      * @var string
Please login to merge, or discard this patch.