@@ -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\Filesystem; |
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\Filesystem; |
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\Config; |
24 | 24 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | public function getConfig(string $name): ConfigInterface |
47 | 47 | { |
48 | - return new LazyConfig(function () use ($name) { |
|
48 | + return new LazyConfig(function() use ($name) { |
|
49 | 49 | if (!isset($this->configs[$name])) { |
50 | 50 | throw new InvalidConfigException("Configuration for '$name' missing."); |
51 | 51 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | $value = preg_replace_callback( |
60 | 60 | '/%([^%]+)%/', |
61 | - function ($matches) { |
|
61 | + function($matches) { |
|
62 | 62 | return $this->getConfigValue($matches[1]); |
63 | 63 | }, |
64 | 64 | $value |
@@ -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\Config; |
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\DependencyInjection; |
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\DependencyInjection; |
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\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 | ); |
@@ -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\Console; |
24 | 24 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | Helper\QuestionFactory::createQuestion($descs['id']), |
123 | 123 | new Validator\ValidatorCollection( |
124 | 124 | new Validator\IdValidator, |
125 | - new Validator\CallbackValidator(function (string $value) use (&$id) { |
|
125 | + new Validator\CallbackValidator(function(string $value) use (&$id) { |
|
126 | 126 | $id = $this->idFactory->createId($value); |
127 | 127 | }) |
128 | 128 | ) |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | ), |
149 | 149 | new Validator\ValidatorCollection( |
150 | 150 | new Validator\AccountValidator, |
151 | - new Validator\CallbackValidator(function (string $value) use (&$account) { |
|
151 | + new Validator\CallbackValidator(function(string $value) use (&$account) { |
|
152 | 152 | $account = $this->accountFactory->createAccount($value); |
153 | 153 | }) |
154 | 154 | ) |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | /** @var array */ |
241 | 241 | $attrValues = $input->getOption('attr-value'); |
242 | 242 | |
243 | - for ($count = 0;; $count++) { |
|
243 | + for ($count = 0; ; $count++) { |
|
244 | 244 | $attrKey = $inputReader->readInput( |
245 | 245 | '', |
246 | 246 | Helper\QuestionFactory::createQuestion('Add an attribute (empty to skip)', $attrKeys[$count] ?? ''), |
@@ -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('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 | } |