@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Marcosh\EffectorExample; |
6 | 6 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * before being executed |
23 | 23 | */ |
24 | 24 | |
25 | -$websiteLogic = function (RequestInterface $request): ResponseInterface { |
|
25 | +$websiteLogic = function(RequestInterface $request): ResponseInterface { |
|
26 | 26 | return new TextResponse((string) $request->getUri()); |
27 | 27 | }; |
28 | 28 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | require __DIR__ . '/../vendor/autoload.php'; |
28 | 28 | |
29 | -$websiteLogic = function (RequestInterface $request): ResponseInterface { |
|
29 | +$websiteLogic = function(RequestInterface $request): ResponseInterface { |
|
30 | 30 | return new TextResponse((string) $request->getUri()); |
31 | 31 | }; |
32 | 32 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Marcosh\Effector\Effect\PDO; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Marcosh\Effector\Effect\PDO; |
6 | 6 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | string $statement, |
21 | 21 | int $fetchMode = \PDO::ATTR_DEFAULT_FETCH_MODE, |
22 | 22 | $arg = null, |
23 | - ?array $ctorArgs = null |
|
23 | + ? array $ctorArgs = null |
|
24 | 24 | ) |
25 | 25 | { |
26 | 26 | return $this->connection->query($statement, $fetchMode, $arg, $ctorArgs); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Marcosh\Effector\Effect\PDOStatement; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Marcosh\Effector\Effect\PDO; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Marcosh\EffectorExample; |
6 | 6 | |
@@ -15,12 +15,12 @@ discard block |
||
15 | 15 | $connection->exec('CREATE TABLE `table` (id INTEGER PRIMARY Key);'); |
16 | 16 | |
17 | 17 | $app = Compose::pieces( |
18 | - function (): string {return 'INSERT INTO `table` (id) VALUES (:id);';}, |
|
18 | + function(): string {return 'INSERT INTO `table` (id) VALUES (:id);'; }, |
|
19 | 19 | new Prepare($connection), |
20 | - function (\PDOStatement $statement) { |
|
20 | + function(\PDOStatement $statement) { |
|
21 | 21 | return (new Execute($statement))(['id' => 0]); |
22 | 22 | }, |
23 | - function (bool $result): string { |
|
23 | + function(bool $result): string { |
|
24 | 24 | return (string) $result . PHP_EOL; |
25 | 25 | }, |
26 | 26 | new Echo_() |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Marcosh\Effector\Effect\DateTime; |
6 | 6 | |
7 | 7 | final class DateTimeImmutable |
8 | 8 | { |
9 | - public function __invoke(?string $time = 'now', ?\DateTimeZone $timeZone = null): \DateTimeImmutable |
|
9 | + public function __invoke(? string $time = 'now', ? \DateTimeZone $timeZone = null) : \DateTimeImmutable |
|
10 | 10 | { |
11 | 11 | return new \DateTimeImmutable($time, $timeZone); |
12 | 12 | } |