Completed
Push — master ( 46ef53...b28300 )
by Hannes
04:44
created
src/Validator/StringValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * Copyright 2016-20 Hannes Forsgård
19 19
  */
20 20
 
21
-declare(strict_types = 1);
21
+declare(strict_types=1);
22 22
 
23 23
 namespace byrokrat\giroapp\Validator;
24 24
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     protected function getRule(): Rule
32 32
     {
33
-        return (new Rule)->pre(function (string $val) {
33
+        return (new Rule)->pre(function(string $val) {
34 34
             return filter_var(
35 35
                 $val,
36 36
                 FILTER_UNSAFE_RAW,
Please login to merge, or discard this patch.
src/Validator/NotEmptyValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * Copyright 2016-20 Hannes Forsgård
19 19
  */
20 20
 
21
-declare(strict_types = 1);
21
+declare(strict_types=1);
22 22
 
23 23
 namespace byrokrat\giroapp\Validator;
24 24
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         return (new Rule)
34 34
             ->msg('value must not be empty')
35
-            ->match(function (string $val) {
35
+            ->match(function(string $val) {
36 36
                 return trim($val) !== '';
37 37
             });
38 38
     }
Please login to merge, or discard this patch.
src/Validator/EmailValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * Copyright 2016-20 Hannes Forsgård
19 19
  */
20 20
 
21
-declare(strict_types = 1);
21
+declare(strict_types=1);
22 22
 
23 23
 namespace byrokrat\giroapp\Validator;
24 24
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     protected function getRule(): Rule
32 32
     {
33
-        return (new Rule)->msg('must be a valid email address')->match(function (string $val) {
33
+        return (new Rule)->msg('must be a valid email address')->match(function(string $val) {
34 34
             return empty($val) || filter_var($val, FILTER_VALIDATE_EMAIL);
35 35
         });
36 36
     }
Please login to merge, or discard this patch.
src/Validator/BgcNumberValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * Copyright 2016-20 Hannes Forsgård
19 19
  */
20 20
 
21
-declare(strict_types = 1);
21
+declare(strict_types=1);
22 22
 
23 23
 namespace byrokrat\giroapp\Validator;
24 24
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         return (new Rule)
34 34
             ->msg('must be a 6 digit BGC customer number')
35 35
             ->match('ctype_digit')
36
-            ->match(function (string $val) {
36
+            ->match(function(string $val) {
37 37
                 return strlen($val) == 6;
38 38
             });
39 39
     }
Please login to merge, or discard this patch.
src/Validator/ValidatorCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * Copyright 2016-20 Hannes Forsgård
19 19
  */
20 20
 
21
-declare(strict_types = 1);
21
+declare(strict_types=1);
22 22
 
23 23
 namespace byrokrat\giroapp\Validator;
24 24
 
Please login to merge, or discard this patch.
src/Validator/IdValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * Copyright 2016-20 Hannes Forsgård
19 19
  */
20 20
 
21
-declare(strict_types = 1);
21
+declare(strict_types=1);
22 22
 
23 23
 namespace byrokrat\giroapp\Validator;
24 24
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         return (new Rule)
34 34
             ->msg('must be a valid id number')
35
-            ->match(function (string $val) {
35
+            ->match(function(string $val) {
36 36
                 return preg_match('/^[0-9.,+ -]+$/', $val);
37 37
             });
38 38
     }
Please login to merge, or discard this patch.
src/Validator/AccountValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * Copyright 2016-20 Hannes Forsgård
19 19
  */
20 20
 
21
-declare(strict_types = 1);
21
+declare(strict_types=1);
22 22
 
23 23
 namespace byrokrat\giroapp\Validator;
24 24
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         return (new Rule)
34 34
             ->msg('must be a valid account number')
35
-            ->match(function (string $val) {
35
+            ->match(function(string $val) {
36 36
                 return preg_match('/^[0-9., -]+$/', $val);
37 37
             });
38 38
     }
Please login to merge, or discard this patch.
src/Validator/PhoneValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * Copyright 2016-20 Hannes Forsgård
19 19
  */
20 20
 
21
-declare(strict_types = 1);
21
+declare(strict_types=1);
22 22
 
23 23
 namespace byrokrat\giroapp\Validator;
24 24
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     protected function getRule(): Rule
32 32
     {
33
-        return (new Rule)->msg('must be a valid phone number')->match(function (string $val) {
33
+        return (new Rule)->msg('must be a valid phone number')->match(function(string $val) {
34 34
             return !!preg_match('/^\+?[0-9()., -]*$/', $val);
35 35
         });
36 36
     }
Please login to merge, or discard this patch.
src/Validator/DonorKeyValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * Copyright 2016-20 Hannes Forsgård
19 19
  */
20 20
 
21
-declare(strict_types = 1);
21
+declare(strict_types=1);
22 22
 
23 23
 namespace byrokrat\giroapp\Validator;
24 24
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         return (new Rule)
34 34
             ->msg('must be a valid donor key')
35
-            ->match(function (string $val) {
35
+            ->match(function(string $val) {
36 36
                 return preg_match('/^[a-zA-Z0-9]{1,16}$/', $val);
37 37
             });
38 38
     }
Please login to merge, or discard this patch.