Completed
Push — master ( 37f3ad...9dd9e0 )
by Marco
02:11
created
example/SerializeEffects.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
example/Http.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Effect/PDO/Exec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Effect/PDO/Query.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Effect/PDOStatement/Execute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Effect/PDO/Prepare.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
example/Database.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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_()
Please login to merge, or discard this patch.
src/Effect/DateTime/DateTimeImmutable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.