@@ -173,7 +173,7 @@ |
||
173 | 173 | $ext = $matches[2]; |
174 | 174 | |
175 | 175 | return $this->hashPart('<a href="'.$url.'" class="post-image ' |
176 | - .('gif' === $ext ? ' img-gif':'').'"><img src="'.$url.'" class="img-thumbnail" alt="Inline image"></a>'); |
|
176 | + .('gif' === $ext ? ' img-gif' : '').'"><img src="'.$url.'" class="img-thumbnail" alt="Inline image"></a>'); |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | protected function doAnchorsPointUsernameCallback($matches) |
@@ -24,7 +24,7 @@ |
||
24 | 24 | $user = $em->getRepository('SkobkinPointToolsBundle:User')->findUserByLogin($login); |
25 | 25 | |
26 | 26 | if (!$user) { |
27 | - throw $this->createNotFoundException('User ' . $login . ' not found.'); |
|
27 | + throw $this->createNotFoundException('User '.$login.' not found.'); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | $paginator = $this->get('knp_paginator'); |
@@ -96,13 +96,13 @@ |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | if (OutputInterface::VERBOSITY_VERBOSE === $output->getVerbosity()) { |
99 | - $output->writeln('@' . $row[1] . ' added'); |
|
99 | + $output->writeln('@'.$row[1].' added'); |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | $count++; |
103 | 103 | } |
104 | 104 | |
105 | - $output->writeln($count . ' users imported.'); |
|
105 | + $output->writeln($count.' users imported.'); |
|
106 | 106 | |
107 | 107 | return 0; |
108 | 108 | } |
@@ -101,7 +101,7 @@ |
||
101 | 101 | { |
102 | 102 | $qb = $this->createQueryBuilder('se'); |
103 | 103 | |
104 | - $rows = $qb |
|
104 | + $rows = $qb |
|
105 | 105 | ->select([ |
106 | 106 | 'NEW Skobkin\Bundle\PointToolsBundle\DTO\DailyEvents(DAY(se.date), COUNT(se))', |
107 | 107 | 'DAY(se.date) as day', |
@@ -77,6 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | /** |
79 | 79 | * Make GET request and return response body |
80 | + * @param string $path |
|
80 | 81 | */ |
81 | 82 | public function getGetResponseBody($path, array $parameters = []): StreamInterface |
82 | 83 | { |
@@ -95,7 +96,7 @@ discard block |
||
95 | 96 | * @param string $path Request path |
96 | 97 | * @param array $parameters Key => Value array of query parameters |
97 | 98 | * |
98 | - * @return ResponseInterface |
|
99 | + * @return \Psr\Http\Message\ResponseInterface |
|
99 | 100 | * |
100 | 101 | * @throws NetworkException |
101 | 102 | */ |
@@ -110,7 +111,7 @@ discard block |
||
110 | 111 | * @param string $path Request path |
111 | 112 | * @param array $parameters Key => Value array of request data |
112 | 113 | * |
113 | - * @return ResponseInterface |
|
114 | + * @return \Psr\Http\Message\ResponseInterface |
|
114 | 115 | * |
115 | 116 | * @throws NetworkException |
116 | 117 | */ |
@@ -154,7 +154,7 @@ |
||
154 | 154 | return $this->lastName; |
155 | 155 | } |
156 | 156 | |
157 | - public function setLastName(?string $lastName = null): Account |
|
157 | + public function setLastName(?string $lastName = null) : Account |
|
158 | 158 | { |
159 | 159 | $this->lastName = $lastName; |
160 | 160 |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | return $this->name; |
135 | 135 | } |
136 | 136 | |
137 | - public function updateLoginAndName(string $login, ?string $name): self |
|
137 | + public function updateLoginAndName(string $login, ?string $name) : self |
|
138 | 138 | { |
139 | 139 | $this->login = $login; |
140 | 140 | $this->name = $name; |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | return $this->updatedAt; |
196 | 196 | } |
197 | 197 | |
198 | - public function updatePrivacy(?bool $public, ?bool $whitelistOnly): void |
|
198 | + public function updatePrivacy(?bool $public, ?bool $whitelistOnly) : void |
|
199 | 199 | { |
200 | 200 | $this->public = $public; |
201 | 201 | $this->whitelistOnly = $whitelistOnly; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | return $this->postId; |
46 | 46 | } |
47 | 47 | |
48 | - public function setPostId(?string $postId): void |
|
48 | + public function setPostId(?string $postId) : void |
|
49 | 49 | { |
50 | 50 | $this->postId = $postId; |
51 | 51 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | return $this->number; |
56 | 56 | } |
57 | 57 | |
58 | - public function setNumber(?int $number): void |
|
58 | + public function setNumber(?int $number) : void |
|
59 | 59 | { |
60 | 60 | $this->number = $number; |
61 | 61 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | return $this->toCommentId; |
66 | 66 | } |
67 | 67 | |
68 | - public function setToCommentId(?int $toCommentId): void |
|
68 | + public function setToCommentId(?int $toCommentId) : void |
|
69 | 69 | { |
70 | 70 | $this->toCommentId = $toCommentId; |
71 | 71 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | return $this->created; |
76 | 76 | } |
77 | 77 | |
78 | - public function setCreated(?string $created): void |
|
78 | + public function setCreated(?string $created) : void |
|
79 | 79 | { |
80 | 80 | $this->created = $created; |
81 | 81 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | return $this->text; |
86 | 86 | } |
87 | 87 | |
88 | - public function setText(?string $text): void |
|
88 | + public function setText(?string $text) : void |
|
89 | 89 | { |
90 | 90 | $this->text = $text; |
91 | 91 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | return $this->author; |
96 | 96 | } |
97 | 97 | |
98 | - public function setAuthor(?User $author): void |
|
98 | + public function setAuthor(?User $author) : void |
|
99 | 99 | { |
100 | 100 | $this->author = $author; |
101 | 101 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | return $this->isRec; |
111 | 111 | } |
112 | 112 | |
113 | - public function setIsRec(?bool $isRec): void |
|
113 | + public function setIsRec(?bool $isRec) : void |
|
114 | 114 | { |
115 | 115 | $this->isRec = $isRec; |
116 | 116 | } |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | return $this->post; |
21 | 21 | } |
22 | 22 | |
23 | - public function setPost(?Post $post): void |
|
23 | + public function setPost(?Post $post) : void |
|
24 | 24 | { |
25 | 25 | $this->post = $post; |
26 | 26 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | /** |
29 | 29 | * @return Comment[]|null |
30 | 30 | */ |
31 | - public function getComments(): ?array |
|
31 | + public function getComments(): ? array |
|
32 | 32 | { |
33 | 33 | return $this->comments; |
34 | 34 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * @param Comment[]|null $comments |
38 | 38 | */ |
39 | - public function setComments(?array $comments): void |
|
39 | + public function setComments(? array $comments) : void |
|
40 | 40 | { |
41 | 41 | $this->comments = $comments; |
42 | 42 | } |