Passed
Push — master ( 6c3849...8a2f40 )
by Hannes
02:09
created
src/Config/BaseDirReader.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-19 Hannes Forsgård
19 19
  */
20 20
 
21
-declare(strict_types = 1);
21
+declare(strict_types=1);
22 22
 
23 23
 namespace byrokrat\giroapp\Config;
24 24
 
Please login to merge, or discard this patch.
src/DependencyInjection/AccountFactoryProperty.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-19 Hannes Forsgård
19 19
  */
20 20
 
21
-declare(strict_types = 1);
21
+declare(strict_types=1);
22 22
 
23 23
 namespace byrokrat\giroapp\DependencyInjection;
24 24
 
Please login to merge, or discard this patch.
src/DependencyInjection/IdFactoryProperty.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-19 Hannes Forsgård
19 19
  */
20 20
 
21
-declare(strict_types = 1);
21
+declare(strict_types=1);
22 22
 
23 23
 namespace byrokrat\giroapp\DependencyInjection;
24 24
 
Please login to merge, or discard this patch.
src/Console/Helper/InputReader.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-19 Hannes Forsgård
19 19
  */
20 20
 
21
-declare(strict_types = 1);
21
+declare(strict_types=1);
22 22
 
23 23
 namespace byrokrat\giroapp\Console\Helper;
24 24
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $value = (string)$this->questionHelper->ask(
71 71
             $this->input,
72 72
             $this->output,
73
-            $question->setValidator(function ($answer) use ($key, $validator) {
73
+            $question->setValidator(function($answer) use ($key, $validator) {
74 74
                 return $validator->validate($key, (string)$answer);
75 75
             })
76 76
         );
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-19 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/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-19 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/NumericValidator.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-19 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 be numerical')
35
-            ->match(function (string $val) {
35
+            ->match(function(string $val) {
36 36
                 return empty($val) || ctype_digit($val);
37 37
             });
38 38
     }
Please login to merge, or discard this patch.
src/Validator/ChoiceValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * Copyright 2016-19 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
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         return (new Rule)
47 47
             ->msg("value must be one of '" . implode("'/'", array_keys($this->choices)) . "'")
48
-            ->match(function (string $val) {
48
+            ->match(function(string $val) {
49 49
                 $lower = strtolower((string)$val);
50 50
 
51 51
                 if (isset($this->choices[$lower]) || in_array($val, $this->choices)) {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
                 return false;
56 56
             })
57
-            ->post(function (string $val) {
57
+            ->post(function(string $val) {
58 58
                 return $this->choices[strtolower($val)] ?? $val;
59 59
             });
60 60
     }
Please login to merge, or discard this patch.
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-19 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.