Passed
Push — master ( 612632...9e8075 )
by Dedipyaman
08:57
created
src/Validator/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,5 +7,5 @@
 block discarded – undo
7 7
 
8 8
 interface Validator
9 9
 {
10
-    public function validate($type, $options = []) : Result;
10
+    public function validate($type, $options = [ ]) : Result;
11 11
 }
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
src/Validator/PasswordValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * @param array $options
61 61
      * @return Result
62 62
      */
63
-    public function validate($password, $options = []): Result
63
+    public function validate($password, $options = [ ]): Result
64 64
     {
65 65
 
66 66
         if (!$this->isLongEnough($password, 8)) {
Please login to merge, or discard this patch.
src/Error/TypeErrorCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 abstract class TypeErrorCode
13 13
 {
14
-    const PREMATURE_CALL_TO_METHOD  = 230000;
14
+    const PREMATURE_CALL_TO_METHOD = 230000;
15 15
 
16 16
     const EMAIL_INVALID = 320001;
17 17
     const PASSWORD_TOO_SMALL = 320002;
Please login to merge, or discard this patch.
src/Validator/EmailValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
 class EmailValidator implements Validator
12 12
 {
13
-    public function validate($email, $options = []): Result
13
+    public function validate($email, $options = [ ]): Result
14 14
     {
15 15
         if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
16 16
             return new Success();
Please login to merge, or discard this patch.
src/Result/Failure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     public function getFirstError() : Error
38 38
     {
39
-        return $this->errors[0];
39
+        return $this->errors[ 0 ];
40 40
 
41 41
     }
42 42
 }
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
src/Result/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 abstract class Result
8 8
 {
9 9
     private $valid;
10
-    protected $errors = [];
10
+    protected $errors = [ ];
11 11
 
12 12
     public function __construct(bool $valid, Error... $errors)
13 13
     {
Please login to merge, or discard this patch.
src/Rule/String/AlphaNumeric.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      * AlphaNumeric constructor.
33 33
      * @param array $allowedSpecialChars
34 34
      */
35
-    public function __construct($allowedSpecialChars = [])
35
+    public function __construct($allowedSpecialChars = [ ])
36 36
     {
37 37
         $this->allowedSpecialChars = $allowedSpecialChars;
38 38
     }
Please login to merge, or discard this patch.
src/Validator/IPAddressValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 class IPAddressValidator implements Validator
13 13
 {
14
-    public function validate($type, $options = []): Result
14
+    public function validate($type, $options = [ ]): Result
15 15
     {
16 16
         if (filter_var($type, FILTER_VALIDATE_IP)) {
17 17
             return new Success();
Please login to merge, or discard this patch.