@@ -18,7 +18,7 @@ discard block |
||
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\Plugin; |
24 | 24 | |
@@ -46,12 +46,12 @@ 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 | |
53 | 53 | if (preg_match('/^([\d.]+)(-[a-zA-Z0-9]+)(@.+)?/', $version, $matches)) { |
54 | - return isset($matches[3]) ? $matches[1] . '-dev' : $matches[1] . $matches[2]; |
|
54 | + return isset($matches[3]) ? $matches[1] . '-dev' : $matches[1] . $matches[2]; |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | return $version; |
@@ -18,7 +18,7 @@ |
||
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\CommandBus; |
24 | 24 |
@@ -18,7 +18,7 @@ discard block |
||
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\CommandBus; |
24 | 24 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | implode( |
51 | 51 | "', '", |
52 | 52 | array_map( |
53 | - function (Transition $transition): string { |
|
53 | + function(Transition $transition): string { |
|
54 | 54 | return $transition->getName(); |
55 | 55 | }, |
56 | 56 | $this->workflow->getEnabledTransitions($donor) |
@@ -18,7 +18,7 @@ |
||
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\CommandBus\Helper; |
24 | 24 |
@@ -18,7 +18,7 @@ |
||
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\Sorter; |
24 | 24 |
@@ -18,7 +18,7 @@ |
||
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\Console; |
24 | 24 |
@@ -18,7 +18,7 @@ discard block |
||
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\Console; |
24 | 24 | |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | Helper\QuestionFactory::createQuestion($descs['id']), |
121 | 121 | new Validator\ValidatorCollection( |
122 | 122 | new Validator\IdValidator, |
123 | - new Validator\CallbackValidator(function (string $value) use (&$donorId) { |
|
123 | + new Validator\CallbackValidator(function(string $value) use (&$donorId) { |
|
124 | 124 | $donorId = $this->idFactory->createId($value); |
125 | 125 | }) |
126 | 126 | ) |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | ), |
143 | 143 | new Validator\ValidatorCollection( |
144 | 144 | new Validator\AccountValidator, |
145 | - new Validator\CallbackValidator(function (string $value) use (&$account) { |
|
145 | + new Validator\CallbackValidator(function(string $value) use (&$account) { |
|
146 | 146 | $account = $this->accountFactory->createAccount($value); |
147 | 147 | }) |
148 | 148 | ) |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | /** @var array<string> */ |
224 | 224 | $attrValues = $input->getOption('attr-value'); |
225 | 225 | |
226 | - for ($count = 0;; $count++) { |
|
226 | + for ($count = 0; ; $count++) { |
|
227 | 227 | $attrKey = $inputReader->readInput( |
228 | 228 | '', |
229 | 229 | Helper\QuestionFactory::createQuestion('Add an attribute (empty to skip)', $attrKeys[$count] ?? ''), |
@@ -18,7 +18,7 @@ discard block |
||
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\Console\Helper; |
24 | 24 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | return $donor; |
78 | 78 | } |
79 | 79 | |
80 | - $regexp = '/'. preg_quote($donorId, '/') . '/i'; |
|
80 | + $regexp = '/' . preg_quote($donorId, '/') . '/i'; |
|
81 | 81 | |
82 | 82 | $matchedDonor = null; |
83 | 83 |
@@ -18,7 +18,7 @@ discard block |
||
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\Console\Helper; |
24 | 24 | |
@@ -70,7 +70,7 @@ discard block |
||
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 | ); |