Completed
Push — master ( 0e8f56...28a10f )
by Alexpts
02:22
created
src/PTS/Validator/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
         foreach ($rules as $name => $attrRules) {
53 53
             if (!array_key_exists($name, $data)) {
54
-                $errors[$name] = 'Value is not exists: ' . $name;
54
+                $errors[$name] = 'Value is not exists: '.$name;
55 55
                 continue;
56 56
             }
57 57
 
Please login to merge, or discard this patch.
src/PTS/Validator/Validators/AlphaNumValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace PTS\Validator\Validators;
5 5
 
Please login to merge, or discard this patch.
src/PTS/Validator/Validators/EmailValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,6 +5,6 @@
 block discarded – undo
5 5
 {
6 6
     public function __invoke($value): bool
7 7
     {
8
-        return (bool)filter_var($value, FILTER_VALIDATE_EMAIL);
8
+        return (bool) filter_var($value, FILTER_VALIDATE_EMAIL);
9 9
     }
10 10
 }
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
src/PTS/Validator/Validators/BetweenIntValidator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,6 +5,6 @@
 block discarded – undo
5 5
 {
6 6
     public function __invoke($value, int $min, int $max): bool
7 7
     {
8
-       return  $value <= $max && $value >= $min;
8
+        return  $value <= $max && $value >= $min;
9 9
     }
10 10
 }
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
src/PTS/Validator/Validators/BoolValidator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,6 +5,6 @@
 block discarded – undo
5 5
 {
6 6
     public function __invoke($value): bool
7 7
     {
8
-       return filter_var($value, \FILTER_VALIDATE_BOOLEAN);
8
+        return filter_var($value, \FILTER_VALIDATE_BOOLEAN);
9 9
     }
10 10
 }
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
src/PTS/Validator/Validators/RequiredValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace PTS\Validator\Validators;
5 5
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
         } elseif ((is_array($value) || $value instanceof \Countable) && count($value) < 1) {
17 17
             $result = false;
18 18
         } elseif ($value instanceof \SplFileInfo) {
19
-            $result =  (string) $value->getPath() !== '';
19
+            $result = (string) $value->getPath() !== '';
20 20
         }
21 21
 
22 22
         return $result;
Please login to merge, or discard this patch.
src/PTS/Validator/Validators/AlphaValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace PTS\Validator\Validators;
5 5
 
Please login to merge, or discard this patch.
src/PTS/Validator/Validators/AlphaDashValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace PTS\Validator\Validators;
5 5
 
Please login to merge, or discard this patch.