Test Failed
Pull Request — master (#9)
by Evgeniy
04:46
created
src/Blog/ViewPostRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,6 @@
 block discarded – undo
10 10
 {
11 11
     public function getId(): int
12 12
     {
13
-        return (int)$this->getAttributeValue('attributes.id');
13
+        return (int) $this->getAttributeValue('attributes.id');
14 14
     }
15 15
 }
Please login to merge, or discard this patch.
src/Blog/PageRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function getPage(): int
26 26
     {
27 27
         if ($this->hasAttribute('query.page')) {
28
-            return (int)$this->getAttributeValue('query.page');
28
+            return (int) $this->getAttributeValue('query.page');
29 29
         }
30 30
 
31 31
         return self::DEFAULT_PAGE_PARAM;
Please login to merge, or discard this patch.
src/Blog/EditPostRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,17 +23,17 @@  discard block
 block discarded – undo
23 23
 {
24 24
     public function getId(): int
25 25
     {
26
-        return (int)$this->getAttributeValue('attributes.id');
26
+        return (int) $this->getAttributeValue('attributes.id');
27 27
     }
28 28
 
29 29
     public function getTitle(): string
30 30
     {
31
-        return (string)$this->getAttributeValue('body.title');
31
+        return (string) $this->getAttributeValue('body.title');
32 32
     }
33 33
 
34 34
     public function getText(): string
35 35
     {
36
-        return (string)$this->getAttributeValue('body.text');
36
+        return (string) $this->getAttributeValue('body.text');
37 37
     }
38 38
 
39 39
     public function getStatus(): PostStatus
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             ],
59 59
             'body.status' => [
60 60
                 new Required(),
61
-                static function ($value): Result {
61
+                static function($value): Result {
62 62
                     $result = new Result();
63 63
                     if (!PostStatus::isValid($value)) {
64 64
                         $result->addError('Incorrect status');
Please login to merge, or discard this patch.
src/User/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
     public function getId(): ?string
67 67
     {
68
-        return $this->id === null ? null : (string)$this->id;
68
+        return $this->id === null ? null : (string) $this->id;
69 69
     }
70 70
 
71 71
     public function getToken(): string
Please login to merge, or discard this patch.
src/User/UserRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
         /**
15 15
          * @var User $identity
16 16
          */
17
-        return $this->getAttributeValue('attributes.' . Authentication::class);
17
+        return $this->getAttributeValue('attributes.'.Authentication::class);
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
src/Auth/AuthRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@
 block discarded – undo
20 20
 {
21 21
     public function getLogin(): string
22 22
     {
23
-        return (string)$this->getAttributeValue('body.login');
23
+        return (string) $this->getAttributeValue('body.login');
24 24
     }
25 25
 
26 26
     public function getPassword(): string
27 27
     {
28
-        return (string)$this->getAttributeValue('body.password');
28
+        return (string) $this->getAttributeValue('body.password');
29 29
     }
30 30
 
31 31
     public function getRules(): array
Please login to merge, or discard this patch.