@@ -10,6 +10,6 @@ |
||
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 | } |
@@ -25,7 +25,7 @@ |
||
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; |
@@ -23,17 +23,17 @@ discard block |
||
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 |
||
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'); |
@@ -65,7 +65,7 @@ |
||
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 |
@@ -14,6 +14,6 @@ |
||
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 | } |
@@ -20,12 +20,12 @@ |
||
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 |