@@ -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\Db\Json; |
24 | 24 |
@@ -75,8 +75,8 @@ |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
78 | - * Implies working mandates, purgeable donors will not be found. |
|
79 | - * |
|
78 | + * Implies working mandates, purgeable donors will not be found. |
|
79 | + * |
|
80 | 80 | * @throws DonorDoesNotExistException If payer number does not exist |
81 | 81 | */ |
82 | 82 | public function requireByPayerNumber(string $payerNumber): Donor |
@@ -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\Db\Json; |
24 | 24 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | . rtrim( |
30 | 30 | (string)preg_replace_callback( |
31 | 31 | '/[A-Z][a-z]+/', |
32 | - function (array $matches) { |
|
32 | + function(array $matches) { |
|
33 | 33 | return strtoupper($matches[0]) . '_'; |
34 | 34 | }, |
35 | 35 | (new \ReflectionClass($this))->getShortName() |
@@ -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\Listener; |
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\Model; |
24 | 24 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | if (is_iterable($donors)) { |
48 | - $this->factory = function () use ($donors) { |
|
48 | + $this->factory = function() use ($donors) { |
|
49 | 49 | foreach ($donors as $donor) { |
50 | 50 | yield $donor; |
51 | 51 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | public function filter(FilterInterface $filter): DonorCollection |
68 | 68 | { |
69 | - return new DonorCollection(function () use ($filter) { |
|
69 | + return new DonorCollection(function() use ($filter) { |
|
70 | 70 | foreach ($this->getIterator() as $donor) { |
71 | 71 | if ($filter->filterDonor($donor)) { |
72 | 72 | yield $donor; |
@@ -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\Model; |
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\Model; |
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\Mapper; |
24 | 24 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function findAll(): DonorCollection |
86 | 86 | { |
87 | - return new DonorCollection(function () { |
|
87 | + return new DonorCollection(function() { |
|
88 | 88 | foreach ($this->collection as $doc) { |
89 | 89 | yield $this->donorSchema->fromArray($doc); |
90 | 90 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | */ |
118 | 118 | public function findByPayerNumber(string $payerNumber): DonorCollection |
119 | 119 | { |
120 | - return new DonorCollection(function () use ($payerNumber) { |
|
120 | + return new DonorCollection(function() use ($payerNumber) { |
|
121 | 121 | foreach ($this->collection->find(y::doc(['payer_number' => y::equals($payerNumber)])) as $doc) { |
122 | 122 | yield $this->donorSchema->fromArray($doc); |
123 | 123 | } |
@@ -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\Db\Json; |
24 | 24 |