@@ -18,7 +18,7 @@ discard block |
||
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 |
||
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 | } |
@@ -18,7 +18,7 @@ discard block |
||
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\Xml; |
24 | 24 | |
@@ -95,28 +95,28 @@ discard block |
||
95 | 95 | |
96 | 96 | switch ($value) { |
97 | 97 | case XmlFormInterface::PHONE: |
98 | - $map[$key] = function ($donorBuilder, $value) use ($key) { |
|
98 | + $map[$key] = function($donorBuilder, $value) use ($key) { |
|
99 | 99 | $donorBuilder->setPhone( |
100 | 100 | (new PhoneValidator)->validate($key, $value) |
101 | 101 | ); |
102 | 102 | }; |
103 | 103 | break; |
104 | 104 | case XmlFormInterface::EMAIL: |
105 | - $map[$key] = function ($donorBuilder, $value) use ($key) { |
|
105 | + $map[$key] = function($donorBuilder, $value) use ($key) { |
|
106 | 106 | $donorBuilder->setEmail( |
107 | 107 | (new EmailValidator)->validate($key, $value) |
108 | 108 | ); |
109 | 109 | }; |
110 | 110 | break; |
111 | 111 | case XmlFormInterface::DONATION_AMOUNT: |
112 | - $map[$key] = function ($donorBuilder, $value) use ($key) { |
|
112 | + $map[$key] = function($donorBuilder, $value) use ($key) { |
|
113 | 113 | $donorBuilder->setDonationAmount(new SEK( |
114 | 114 | (new NumericValidator)->validate($key, $value) |
115 | 115 | )); |
116 | 116 | }; |
117 | 117 | break; |
118 | 118 | case XmlFormInterface::COMMENT: |
119 | - $map[$key] = function ($donorBuilder, $value) { |
|
119 | + $map[$key] = function($donorBuilder, $value) { |
|
120 | 120 | $donorBuilder->setComment($value); |
121 | 121 | }; |
122 | 122 | break; |
@@ -18,7 +18,7 @@ |
||
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 |
@@ -18,7 +18,7 @@ |
||
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 |
@@ -18,7 +18,7 @@ |
||
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\Plugin; |
24 | 24 |
@@ -18,7 +18,7 @@ discard block |
||
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\Plugin; |
24 | 24 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | private function parseVersion(string $version): string |
48 | 48 | { |
49 | - if ('$'.'app_version'.'$' == $version) { |
|
49 | + if ('$' . 'app_version' . '$' == $version) { |
|
50 | 50 | return 'dev-master'; |
51 | 51 | } |
52 | 52 |
@@ -18,7 +18,7 @@ |
||
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\Plugin; |
24 | 24 |
@@ -18,7 +18,7 @@ discard block |
||
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\Utils; |
24 | 24 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | date('Y-m-d H:i:s', $log->timestamp), |
35 | 35 | strtoupper($log->name), |
36 | 36 | self::interpolate(strip_tags($log->message), $log->context), |
37 | - implode(', ', array_reduce(array_keys($log->context), function ($values, $key) use ($log) { |
|
37 | + implode(', ', array_reduce(array_keys($log->context), function($values, $key) use ($log) { |
|
38 | 38 | $values[] = "$key:{$log->context[$key]}"; |
39 | 39 | return $values; |
40 | 40 | }, [])) |
@@ -46,8 +46,8 @@ |
||
46 | 46 | public function findByPayerNumber(string $payerNumber): ?Donor; |
47 | 47 | |
48 | 48 | /** |
49 | - * Implies working mandates, purgeable donors will not be found. |
|
50 | - * |
|
49 | + * Implies working mandates, purgeable donors will not be found. |
|
50 | + * |
|
51 | 51 | * @throws DonorDoesNotExistException If payer number does not exist |
52 | 52 | */ |
53 | 53 | public function requireByPayerNumber(string $payerNumber): Donor; |