@@ -18,5 +18,5 @@ |
||
18 | 18 | /** |
19 | 19 | * @var string |
20 | 20 | */ |
21 | - protected const FIXTURE_DIRECTORY = __DIR__ . '/fixtures/'; |
|
21 | + protected const FIXTURE_DIRECTORY = __DIR__.'/fixtures/'; |
|
22 | 22 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | protected function isNullable(string $field): bool |
22 | 22 | { |
23 | - if (parent::isNullable($field)) { |
|
23 | + if (parent::isNullable($field)){ |
|
24 | 24 | return true; |
25 | 25 | } |
26 | 26 |
@@ -20,7 +20,8 @@ |
||
20 | 20 | |
21 | 21 | protected function isNullable(string $field): bool |
22 | 22 | { |
23 | - if (parent::isNullable($field)) { |
|
23 | + if (parent::isNullable($field)) |
|
24 | + { |
|
24 | 25 | return true; |
25 | 26 | } |
26 | 27 |
@@ -43,11 +43,13 @@ |
||
43 | 43 | */ |
44 | 44 | protected function mapDirectories(array $directories): array |
45 | 45 | { |
46 | - if (!isset($directories['root'])) { |
|
46 | + if (!isset($directories['root'])) |
|
47 | + { |
|
47 | 48 | throw new BootException('Missing required directory `root`.'); |
48 | 49 | } |
49 | 50 | |
50 | - if (!isset($directories['app'])) { |
|
51 | + if (!isset($directories['app'])) |
|
52 | + { |
|
51 | 53 | $directories['app'] = $directories['root'] . '/app/'; |
52 | 54 | } |
53 | 55 |
@@ -19,25 +19,25 @@ |
||
19 | 19 | */ |
20 | 20 | protected function mapDirectories(array $directories): array |
21 | 21 | { |
22 | - if (!isset($directories['root'])) { |
|
22 | + if (!isset($directories['root'])){ |
|
23 | 23 | throw new BootException('Missing required directory `root`.'); |
24 | 24 | } |
25 | 25 | |
26 | - if (!isset($directories['app'])) { |
|
27 | - $directories['app'] = $directories['root'] . '/app/'; |
|
26 | + if (!isset($directories['app'])){ |
|
27 | + $directories['app'] = $directories['root'].'/app/'; |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | return \array_merge([ |
31 | 31 | // public root |
32 | - 'public' => $directories['root'] . '/public/', |
|
32 | + 'public' => $directories['root'].'/public/', |
|
33 | 33 | |
34 | 34 | // data directories |
35 | - 'runtime' => $directories['root'] . '/runtime/', |
|
36 | - 'cache' => $directories['root'] . '/runtime/cache/', |
|
35 | + 'runtime' => $directories['root'].'/runtime/', |
|
36 | + 'cache' => $directories['root'].'/runtime/cache/', |
|
37 | 37 | |
38 | 38 | // application directories |
39 | - 'config' => $directories['app'] . '/config/', |
|
40 | - 'resources' => $directories['app'] . '/resources/', |
|
39 | + 'config' => $directories['app'].'/config/', |
|
40 | + 'resources' => $directories['app'].'/resources/', |
|
41 | 41 | ], $directories); |
42 | 42 | } |
43 | 43 | } |
@@ -43,11 +43,13 @@ |
||
43 | 43 | */ |
44 | 44 | protected function mapDirectories(array $directories): array |
45 | 45 | { |
46 | - if (!isset($directories['root'])) { |
|
46 | + if (!isset($directories['root'])) |
|
47 | + { |
|
47 | 48 | throw new BootException('Missing required directory `root`.'); |
48 | 49 | } |
49 | 50 | |
50 | - if (!isset($directories['app'])) { |
|
51 | + if (!isset($directories['app'])) |
|
52 | + { |
|
51 | 53 | $directories['app'] = $directories['root'] . '/app/'; |
52 | 54 | } |
53 | 55 |
@@ -38,25 +38,25 @@ |
||
38 | 38 | */ |
39 | 39 | protected function mapDirectories(array $directories): array |
40 | 40 | { |
41 | - if (!isset($directories['root'])) { |
|
41 | + if (!isset($directories['root'])){ |
|
42 | 42 | throw new BootException('Missing required directory `root`.'); |
43 | 43 | } |
44 | 44 | |
45 | - if (!isset($directories['app'])) { |
|
46 | - $directories['app'] = $directories['root'] . '/app/'; |
|
45 | + if (!isset($directories['app'])){ |
|
46 | + $directories['app'] = $directories['root'].'/app/'; |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | return \array_merge([ |
50 | 50 | // public root |
51 | - 'public' => $directories['root'] . '/public/', |
|
51 | + 'public' => $directories['root'].'/public/', |
|
52 | 52 | |
53 | 53 | // data directories |
54 | - 'runtime' => $directories['root'] . '/runtime/', |
|
55 | - 'cache' => $directories['root'] . '/runtime/cache/', |
|
54 | + 'runtime' => $directories['root'].'/runtime/', |
|
55 | + 'cache' => $directories['root'].'/runtime/cache/', |
|
56 | 56 | |
57 | 57 | // application directories |
58 | - 'config' => $directories['app'] . '/config/', |
|
59 | - 'resources' => $directories['app'] . '/resources/', |
|
58 | + 'config' => $directories['app'].'/config/', |
|
59 | + 'resources' => $directories['app'].'/resources/', |
|
60 | 60 | ], $directories); |
61 | 61 | } |
62 | 62 |
@@ -22,6 +22,6 @@ |
||
22 | 22 | |
23 | 23 | public function perform(): void |
24 | 24 | { |
25 | - $this->write('Hello World - ' . ($this->count++)); |
|
25 | + $this->write('Hello World - '.($this->count++)); |
|
26 | 26 | } |
27 | 27 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | public function perform(): void |
28 | 28 | { |
29 | - switch ($this->argument('helper')) { |
|
29 | + switch ($this->argument('helper')){ |
|
30 | 30 | case 'verbose': |
31 | 31 | $this->write($this->isVerbose() ? 'true' : 'false'); |
32 | 32 | break; |
@@ -26,7 +26,8 @@ |
||
26 | 26 | |
27 | 27 | public function perform(): void |
28 | 28 | { |
29 | - switch ($this->argument('helper')) { |
|
29 | + switch ($this->argument('helper')) |
|
30 | + { |
|
30 | 31 | case 'verbose': |
31 | 32 | $this->write($this->isVerbose() ? 'true' : 'false'); |
32 | 33 | break; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | public function getActor(TokenInterface $token): ?object |
20 | 20 | { |
21 | - if ($token->getPayload()['ok']) { |
|
21 | + if ($token->getPayload()['ok']){ |
|
22 | 22 | return new \stdClass(); |
23 | 23 | } |
24 | 24 |
@@ -18,7 +18,8 @@ |
||
18 | 18 | { |
19 | 19 | public function getActor(TokenInterface $token): ?object |
20 | 20 | { |
21 | - if ($token->getPayload()['ok']) { |
|
21 | + if ($token->getPayload()['ok']) |
|
22 | + { |
|
22 | 23 | return new \stdClass(); |
23 | 24 | } |
24 | 25 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | public function getActor(TokenInterface $token): ?object |
20 | 20 | { |
21 | - if ($token->getID() === 'ok') { |
|
21 | + if ($token->getID() === 'ok'){ |
|
22 | 22 | return new \stdClass(); |
23 | 23 | } |
24 | 24 |
@@ -18,7 +18,8 @@ |
||
18 | 18 | { |
19 | 19 | public function getActor(TokenInterface $token): ?object |
20 | 20 | { |
21 | - if ($token->getID() === 'ok') { |
|
21 | + if ($token->getID() === 'ok') |
|
22 | + { |
|
22 | 23 | return new \stdClass(); |
23 | 24 | } |
24 | 25 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | public function load(string $id): ?TokenInterface |
20 | 20 | { |
21 | - if ($id === 'bad') { |
|
21 | + if ($id === 'bad'){ |
|
22 | 22 | return null; |
23 | 23 | } |
24 | 24 |
@@ -18,7 +18,8 @@ |
||
18 | 18 | { |
19 | 19 | public function load(string $id): ?TokenInterface |
20 | 20 | { |
21 | - if ($id === 'bad') { |
|
21 | + if ($id === 'bad') |
|
22 | + { |
|
22 | 23 | return null; |
23 | 24 | } |
24 | 25 |