Passed
Push — develop ( 448334...a47dcf )
by nguereza
02:20
created
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
     /**
56 55
      * {@inheritdoc}
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
     /**
56 55
      * String pattern to allow
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
@@ -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 NotMatches implements RuleInterface
53
-{
52
+class NotMatches implements RuleInterface {
54 53
 
55 54
     /**
56 55
      * Field to compare against
@@ -62,8 +61,7 @@  discard block
 block discarded – undo
62 61
      * Constructor
63 62
      * @param string $field the field to compare against
64 63
      */
65
-    public function __construct(string $field)
66
-    {
64
+    public function __construct(string $field) {
67 65
         $this->field = $field;
68 66
     }
69 67
 
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
     /**
56 55
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Rule/Equal.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 Equal implements RuleInterface
53
-{
52
+class Equal implements RuleInterface {
54 53
 
55 54
     /**
56 55
      * Value to compare against
@@ -62,8 +61,7 @@  discard block
 block discarded – undo
62 61
      * Constructor
63 62
      * @param mixed $value the value to compare against
64 63
      */
65
-    public function __construct($value)
66
-    {
64
+    public function __construct($value) {
67 65
         $this->value = $value;
68 66
     }
69 67
 
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
     /**
56 55
      * String pattern to allow
Please login to merge, or discard this patch.
src/Rule/DateBefore.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 DateBefore implements RuleInterface
53
-{
52
+class DateBefore implements RuleInterface {
54 53
 
55 54
     /**
56 55
      * The date to compare against
@@ -62,8 +61,7 @@  discard block
 block discarded – undo
62 61
      * Constructor
63 62
      * @param string $date the date format
64 63
      */
65
-    public function __construct(string $date)
66
-    {
64
+    public function __construct(string $date) {
67 65
         $this->date = $date;
68 66
     }
69 67
 
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
     /**
56 55
      * String pattern to allow
Please login to merge, or discard this patch.
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
     /**
61 60
      * The data to validate
@@ -111,8 +110,7 @@  discard block
 block discarded – undo
111 110
      * @param Lang $lang
112 111
      * @param string $langDomain
113 112
      */
114
-    public function __construct(Lang $lang, string $langDomain = 'validators')
115
-    {
113
+    public function __construct(Lang $lang, string $langDomain = 'validators') {
116 114
         $this->lang = $lang;
117 115
         $this->langDomain = $langDomain;
118 116
 
@@ -182,8 +180,7 @@  discard block
 block discarded – undo
182 180
      * @param mixed $default the default value to return if can not find field value
183 181
      * @return mixed
184 182
      */
185
-    public function getData(?string $field = null, $default = null)
186
-    {
183
+    public function getData(?string $field = null, $default = null) {
187 184
         if ($field === null) {
188 185
             return $this->data;
189 186
         }
Please login to merge, or discard this patch.