@@ -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 | } |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | bool $disableNotifications = false |
| 96 | 96 | ): bool { |
| 97 | 97 | $sendMessage = new SendMessage(); |
| 98 | - $sendMessage->chat_id = (string)$chatId; |
|
| 98 | + $sendMessage->chat_id = (string) $chatId; |
|
| 99 | 99 | $sendMessage->text = $text; |
| 100 | 100 | $sendMessage->parse_mode = $parseMode; |
| 101 | 101 | $sendMessage->disable_web_page_preview = $disableWebPreview; |
@@ -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', |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | private $userRepository; |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | - * @param EntityManagerInterface $em |
|
| 23 | 22 | */ |
| 24 | 23 | public function __construct(UserRepository $userRepository) |
| 25 | 24 | { |
@@ -35,36 +35,36 @@ |
||
| 35 | 35 | private $error; |
| 36 | 36 | |
| 37 | 37 | |
| 38 | - public function getToken(): ?string |
|
| 38 | + public function getToken(): ? string |
|
| 39 | 39 | { |
| 40 | 40 | return $this->token; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - public function setToken(?string $token): self |
|
| 43 | + public function setToken(? string $token) : self |
|
| 44 | 44 | { |
| 45 | 45 | $this->token = $token; |
| 46 | 46 | |
| 47 | 47 | return $this; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - public function getCsRfToken(): ?string |
|
| 50 | + public function getCsRfToken(): ? string |
|
| 51 | 51 | { |
| 52 | 52 | return $this->csRfToken; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - public function setCsRfToken(?string $csRfToken): self |
|
| 55 | + public function setCsRfToken(? string $csRfToken) : self |
|
| 56 | 56 | { |
| 57 | 57 | $this->csRfToken = $csRfToken; |
| 58 | 58 | |
| 59 | 59 | return $this; |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - public function getError(): ?string |
|
| 62 | + public function getError(): ? string |
|
| 63 | 63 | { |
| 64 | 64 | return $this->error; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - public function setError(?string $error): self |
|
| 67 | + public function setError(? string $error) : self |
|
| 68 | 68 | { |
| 69 | 69 | $this->error = $error; |
| 70 | 70 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * @return MetaPost[] |
| 24 | 24 | */ |
| 25 | - public function getPosts(): ?array |
|
| 25 | + public function getPosts(): ? array |
|
| 26 | 26 | { |
| 27 | 27 | return $this->posts; |
| 28 | 28 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | * @param MetaPost[] $posts |
| 34 | 34 | * @return PostsPage |
| 35 | 35 | */ |
| 36 | - public function setPosts(?array $posts): self |
|
| 36 | + public function setPosts(? array $posts) : self |
|
| 37 | 37 | { |
| 38 | 38 | $this->posts = $posts; |
| 39 | 39 | |
@@ -76,12 +76,12 @@ discard block |
||
| 76 | 76 | private $private; |
| 77 | 77 | |
| 78 | 78 | |
| 79 | - public function getId(): ?string |
|
| 79 | + public function getId(): ? string |
|
| 80 | 80 | { |
| 81 | 81 | return $this->id; |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | - public function setId(?string $id): self |
|
| 84 | + public function setId(? string $id) : self |
|
| 85 | 85 | { |
| 86 | 86 | $this->id = $id; |
| 87 | 87 | |
@@ -91,12 +91,12 @@ discard block |
||
| 91 | 91 | /** |
| 92 | 92 | * @return string[] |
| 93 | 93 | */ |
| 94 | - public function getTags(): ?array |
|
| 94 | + public function getTags(): ? array |
|
| 95 | 95 | { |
| 96 | 96 | return $this->tags; |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | - public function setTags(?array $tags): self |
|
| 99 | + public function setTags(? array $tags) : self |
|
| 100 | 100 | { |
| 101 | 101 | $this->tags = $tags; |
| 102 | 102 | return $this; |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | /** |
| 106 | 106 | * @return string[] |
| 107 | 107 | */ |
| 108 | - public function getFiles(): ?array |
|
| 108 | + public function getFiles(): ? array |
|
| 109 | 109 | { |
| 110 | 110 | return $this->files; |
| 111 | 111 | } |
@@ -115,71 +115,71 @@ discard block |
||
| 115 | 115 | * |
| 116 | 116 | * @return Post |
| 117 | 117 | */ |
| 118 | - public function setFiles(?array $files): self |
|
| 118 | + public function setFiles(? array $files) : self |
|
| 119 | 119 | { |
| 120 | 120 | $this->files = $files; |
| 121 | 121 | |
| 122 | 122 | return $this; |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | - public function getAuthor(): ?User |
|
| 125 | + public function getAuthor(): ? User |
|
| 126 | 126 | { |
| 127 | 127 | return $this->author; |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | - public function setAuthor(?User $author): self |
|
| 130 | + public function setAuthor(? User $author) : self |
|
| 131 | 131 | { |
| 132 | 132 | $this->author = $author; |
| 133 | 133 | return $this; |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | - public function getText(): ?string |
|
| 136 | + public function getText(): ? string |
|
| 137 | 137 | { |
| 138 | 138 | return $this->text; |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | - public function setText(?string $text): self |
|
| 141 | + public function setText(? string $text) : self |
|
| 142 | 142 | { |
| 143 | 143 | $this->text = $text; |
| 144 | 144 | |
| 145 | 145 | return $this; |
| 146 | 146 | } |
| 147 | 147 | |
| 148 | - public function getCreated(): ?string |
|
| 148 | + public function getCreated(): ? string |
|
| 149 | 149 | { |
| 150 | 150 | return $this->created; |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | - public function setCreated(?string $created): self |
|
| 153 | + public function setCreated(? string $created) : self |
|
| 154 | 154 | { |
| 155 | 155 | $this->created = $created; |
| 156 | 156 | |
| 157 | 157 | return $this; |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | - public function getType(): ?string |
|
| 160 | + public function getType(): ? string |
|
| 161 | 161 | { |
| 162 | 162 | return $this->type; |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | - public function setType(?string $type): self |
|
| 165 | + public function setType(? string $type) : self |
|
| 166 | 166 | { |
| 167 | 167 | $this->type = $type; |
| 168 | 168 | |
| 169 | 169 | return $this; |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | - public function getPrivate(): ?bool |
|
| 172 | + public function getPrivate(): ? bool |
|
| 173 | 173 | { |
| 174 | 174 | return $this->private; |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | - public function isPrivate(): ?bool |
|
| 177 | + public function isPrivate(): ? bool |
|
| 178 | 178 | { |
| 179 | 179 | return $this->private; |
| 180 | 180 | } |
| 181 | 181 | |
| 182 | - public function setPrivate(?bool $private): self |
|
| 182 | + public function setPrivate(? bool $private) : self |
|
| 183 | 183 | { |
| 184 | 184 | $this->private = $private; |
| 185 | 185 | return $this; |