Completed
Push — master ( 1d6151...dcf2aa )
by Albert
04:20
created
src/Application/Crypter/PasteCrypter.php 1 patch
Spacing   +3 added lines, -3 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 Nastoletni\Code\Application\Crypter;
6 6
 
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      * @param Paste  $paste
15 15
      * @param string $key
16 16
      */
17
-    public function encrypt(Paste &$paste, string $key): void;
17
+    public function encrypt(Paste&$paste, string $key): void;
18 18
 
19 19
     /**
20 20
      * Decrypts encrypted fields.
@@ -24,5 +24,5 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @throws CrypterException when given key is invalid.
26 26
      */
27
-    public function decrypt(Paste &$paste, string $key): void;
27
+    public function decrypt(Paste&$paste, string $key): void;
28 28
 }
Please login to merge, or discard this patch.
src/Application/Form/CreatePasteFormValidator.php 2 patches
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 Nastoletni\Code\Application\Form;
6 6
 
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 namespace Nastoletni\Code\Application\Form;
6 6
 
7
-use Symfony\Component\Validator\Constraints as Assert;
8 7
 use Symfony\Component\Validator\ConstraintViolationListInterface;
8
+use Symfony\Component\Validator\Constraints as Assert;
9 9
 use Symfony\Component\Validator\Validation;
10 10
 
11 11
 class CreatePasteFormValidator
Please login to merge, or discard this patch.
src/Application/Base10And62Converter.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 Nastoletni\Code\Application;
6 6
 
Please login to merge, or discard this patch.
src/Application/Generator/RandomIdGenerator.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 Nastoletni\Code\Application\Generator;
6 6
 
Please login to merge, or discard this patch.
src/Infrastructure/Dbal/DbalPasteMapper.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 Nastoletni\Code\Infrastructure\Dbal;
6 6
 
Please login to merge, or discard this patch.
src/Infrastructure/AES256Crypter.php 1 patch
Spacing   +3 added lines, -3 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 Nastoletni\Code\Infrastructure;
6 6
 
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     /**
16 16
      * {@inheritdoc}
17 17
      */
18
-    public function encrypt(Paste &$paste, string $key): void
18
+    public function encrypt(Paste&$paste, string $key): void
19 19
     {
20 20
         $key = $this->keyToEncryptionKey($key);
21 21
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * {@inheritdoc}
44 44
      */
45
-    public function decrypt(Paste &$paste, string $key): void
45
+    public function decrypt(Paste&$paste, string $key): void
46 46
     {
47 47
         $key = $this->keyToEncryptionKey($key);
48 48
 
Please login to merge, or discard this patch.
src/Domain/Paste.php 1 patch
Spacing   +3 added lines, -3 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 Nastoletni\Code\Domain;
6 6
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @param null|string $title
36 36
      * @param DateTime    $createdAt
37 37
      */
38
-    public function __construct(Paste\Id $id, ?string $title, DateTime $createdAt)
38
+    public function __construct(Paste\Id $id, ? string $title, DateTime $createdAt)
39 39
     {
40 40
         $this->id = $id;
41 41
         $this->title = $title;
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     /**
54 54
      * @return null|string
55 55
      */
56
-    public function getTitle(): ?string
56
+    public function getTitle(): ? string
57 57
     {
58 58
         return $this->title;
59 59
     }
Please login to merge, or discard this patch.
src/Domain/File.php 1 patch
Spacing   +3 added lines, -3 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 Nastoletni\Code\Domain;
6 6
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * @param null|string $filename
23 23
      * @param string      $content
24 24
      */
25
-    public function __construct(?string $filename, string $content)
25
+    public function __construct(? string $filename, string $content)
26 26
     {
27 27
         $this->filename = $filename;
28 28
         $this->content = $content;
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * @return null|string
33 33
      */
34
-    public function getFilename(): ?string
34
+    public function getFilename(): ? string
35 35
     {
36 36
         return $this->filename;
37 37
     }
Please login to merge, or discard this patch.
src/Domain/Paste/Id.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 Nastoletni\Code\Domain\Paste;
6 6
 
Please login to merge, or discard this patch.