@@ -31,7 +31,7 @@ |
||
31 | 31 | public function findPostByTag(FindPostsByTagQuery $query): Page |
32 | 32 | { |
33 | 33 | $client = $this->getClient(); |
34 | - $client->request('GET', '/api/tags/' . $query->getTag()); |
|
34 | + $client->request('GET', '/api/tags/'.$query->getTag()); |
|
35 | 35 | return $this->responseObject($client, Page::class); |
36 | 36 | } |
37 | 37 |
@@ -26,25 +26,25 @@ |
||
26 | 26 | |
27 | 27 | public function updatePost(UpdatePostCommand $command): void |
28 | 28 | { |
29 | - $this->getClient()->request('PUT', '/api/admin/posts/' . $command->getId(), [], [], [], $this->json($command)); |
|
29 | + $this->getClient()->request('PUT', '/api/admin/posts/'.$command->getId(), [], [], [], $this->json($command)); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | public function deletePost(DeletePostCommand $command): void |
33 | 33 | { |
34 | - $this->getClient()->request('DELETE', '/api/admin/posts/' . $command->getId()); |
|
34 | + $this->getClient()->request('DELETE', '/api/admin/posts/'.$command->getId()); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | public function findAllPosts(FindAllPostsQuery $query): Page |
38 | 38 | { |
39 | 39 | $client = $this->getClient(); |
40 | - $client->request('GET', '/api/posts/?pageNo=' . $query->getPageNo()); |
|
40 | + $client->request('GET', '/api/posts/?pageNo='.$query->getPageNo()); |
|
41 | 41 | return $this->responseObject($client, Page::class); |
42 | 42 | } |
43 | 43 | |
44 | 44 | public function findPostById(FindPostByIdQuery $query): FindPostQueryResponse |
45 | 45 | { |
46 | 46 | $client = $this->getClient(); |
47 | - $client->request('GET', '/api/posts/' . $query->getId()); |
|
47 | + $client->request('GET', '/api/posts/'.$query->getId()); |
|
48 | 48 | return $this->responseObject($client, FindPostQueryResponse::class); |
49 | 49 | } |
50 | 50 |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | public function findLatestComments(FindLatestCommentsQuery $query): Page |
30 | 30 | { |
31 | 31 | $client = $this->getClient(); |
32 | - $client->request('GET', '/api/comments/?pageNo=' . $query->getPageNo()); |
|
32 | + $client->request('GET', '/api/comments/?pageNo='.$query->getPageNo()); |
|
33 | 33 | return $this->responseObject($client, Page::class); |
34 | 34 | } |
35 | 35 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | public function findCommentsForPost(FindCommentsByPostIdQuery $query): array |
41 | 41 | { |
42 | 42 | $client = $this->getClient(); |
43 | - $client->request('GET', '/api/comments/' . $query->getPostId()); |
|
43 | + $client->request('GET', '/api/comments/'.$query->getPostId()); |
|
44 | 44 | return $this->responseObjects($client, FindCommentsByPostIdQueryResponse::class); |
45 | 45 | } |
46 | 46 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | class InMemoryTransactionFactory implements TransactionFactoryInterface |
9 | 9 | { |
10 | 10 | |
11 | - public function createTransaction($func): TransactionInterface |
|
11 | + public function createTransaction($func): TransactionInterface |
|
12 | 12 | { |
13 | 13 | return new InMemoryTransaction($func); |
14 | 14 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | } |
21 | 21 | |
22 | 22 | |
23 | - public function getUser(): LoggedInUser |
|
23 | + public function getUser(): LoggedInUser |
|
24 | 24 | { |
25 | 25 | return new LoggedInUser( |
26 | 26 | InMemoryLoggedInUserProvider::$USER_ID, |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | protected function getContractsPath(): string |
33 | 33 | { |
34 | - return dirname(__FILE__) . '/../../../contracts'; |
|
34 | + return dirname(__FILE__).'/../../../contracts'; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | public static abstract function fail(string $message); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | $dtoClass = CommentsPostHeaderDto::class; |
20 | 20 | $dql = "select new $dtoClass(p.id, p.title, p.tags, p.version) from $headerClass p"; |
21 | 21 | if ($from != null) { |
22 | - $dql = $dql . " where p.createdAt >= :from"; |
|
22 | + $dql = $dql." where p.createdAt >= :from"; |
|
23 | 23 | } |
24 | 24 | $query = $this->getEntityManager()->createQuery($dql); |
25 | 25 | if ($from != null) { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | if ($value == null) { |
103 | 103 | return null; |
104 | 104 | } |
105 | - return is_string($value) ? $value : (string)$value; |
|
105 | + return is_string($value) ? $value : (string) $value; |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | if ($nullable) { |
117 | 117 | return null; |
118 | 118 | } |
119 | - $name = call_user_func(get_called_class() . '::getName'); |
|
119 | + $name = call_user_func(get_called_class().'::getName'); |
|
120 | 120 | throw new RuntimeException("Event $name requires a field '$fieldName' to be present"); |
121 | 121 | } |
122 | 122 | return $this->data[$fieldName]; |
@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | public function getEventName(): string |
41 | 41 | { |
42 | - return call_user_func($this->inboundEventClass . '::getName'); |
|
42 | + return call_user_func($this->inboundEventClass.'::getName'); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 |