@@ -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 static function filter($v) |
22 | 22 | { |
23 | - if (is_array($v)) { |
|
23 | + if (is_array($v)){ |
|
24 | 24 | throw new RuntimeException("can't be array"); |
25 | 25 | } |
26 | 26 |
@@ -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 |
@@ -29,25 +29,25 @@ |
||
29 | 29 | */ |
30 | 30 | protected function mapDirectories(array $directories): array |
31 | 31 | { |
32 | - if (!isset($directories['root'])) { |
|
32 | + if (!isset($directories['root'])){ |
|
33 | 33 | throw new BootException('Missing required directory `root`.'); |
34 | 34 | } |
35 | 35 | |
36 | - if (!isset($directories['app'])) { |
|
37 | - $directories['app'] = $directories['root'] . '/app/'; |
|
36 | + if (!isset($directories['app'])){ |
|
37 | + $directories['app'] = $directories['root'].'/app/'; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | return array_merge([ |
41 | 41 | // public root |
42 | - 'public' => $directories['root'] . '/public/', |
|
42 | + 'public' => $directories['root'].'/public/', |
|
43 | 43 | |
44 | 44 | // data directories |
45 | - 'runtime' => $directories['root'] . '/runtime/', |
|
46 | - 'cache' => $directories['root'] . '/runtime/cache/', |
|
45 | + 'runtime' => $directories['root'].'/runtime/', |
|
46 | + 'cache' => $directories['root'].'/runtime/cache/', |
|
47 | 47 | |
48 | 48 | // application directories |
49 | - 'config' => $directories['app'] . '/config/', |
|
50 | - 'resources' => $directories['app'] . '/resources/', |
|
49 | + 'config' => $directories['app'].'/config/', |
|
50 | + 'resources' => $directories['app'].'/resources/', |
|
51 | 51 | ], $directories); |
52 | 52 | } |
53 | 53 | } |
@@ -22,6 +22,6 @@ |
||
22 | 22 | */ |
23 | 23 | public function perform(): void |
24 | 24 | { |
25 | - throw new Exception('Unhandled another failed command error at ' . __METHOD__ . ' (line ' . __LINE__ . ')'); |
|
25 | + throw new Exception('Unhandled another failed command error at '.__METHOD__.' (line '.__LINE__.')'); |
|
26 | 26 | } |
27 | 27 | } |
@@ -22,6 +22,6 @@ |
||
22 | 22 | */ |
23 | 23 | public function perform(): void |
24 | 24 | { |
25 | - throw new Exception('Unhandled failed command error at ' . __METHOD__ . ' (line ' . __LINE__ . ')'); |
|
25 | + throw new Exception('Unhandled failed command error at '.__METHOD__.' (line '.__LINE__.')'); |
|
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; |
@@ -44,9 +44,9 @@ discard block |
||
44 | 44 | |
45 | 45 | $http->setHandler( |
46 | 46 | static function (ServerRequestInterface $request, ResponseInterface $response): void { |
47 | - if ($request->getAttribute('authContext')->getToken() === null) { |
|
47 | + if ($request->getAttribute('authContext')->getToken() === null){ |
|
48 | 48 | echo 'no token'; |
49 | - } else { |
|
49 | + }else{ |
|
50 | 50 | echo $request->getAttribute('authContext')->getToken()->getID(); |
51 | 51 | echo ':'; |
52 | 52 | echo json_encode($request->getAttribute('authContext')->getToken()->getPayload()); |
@@ -76,9 +76,9 @@ discard block |
||
76 | 76 | |
77 | 77 | $http->setHandler( |
78 | 78 | static function (ServerRequestInterface $request, ResponseInterface $response): void { |
79 | - if ($request->getAttribute('authContext')->getToken() === null) { |
|
79 | + if ($request->getAttribute('authContext')->getToken() === null){ |
|
80 | 80 | echo 'no token'; |
81 | - } else { |
|
81 | + }else{ |
|
82 | 82 | echo $request->getAttribute('authContext')->getToken()->getID(); |
83 | 83 | echo ':'; |
84 | 84 | echo json_encode($request->getAttribute('authContext')->getToken()->getPayload()); |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | ); |
192 | 192 | |
193 | 193 | self::assertSame( |
194 | - 'Expires=' . gmdate(DATE_COOKIE, time() + 3600), |
|
194 | + 'Expires='.gmdate(DATE_COOKIE, time() + 3600), |
|
195 | 195 | $cookie[1] |
196 | 196 | ); |
197 | 197 |
@@ -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 |