@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | 16 | * @param Message $message |
| 17 | - * @return mixed |
|
| 17 | + * @return null|Message |
|
| 18 | 18 | */ |
| 19 | 19 | public function handle(Message $message) |
| 20 | 20 | { |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | /** |
| 121 | - * @param $roomId |
|
| 121 | + * @param string $roomId |
|
| 122 | 122 | * @return Carbon |
| 123 | 123 | */ |
| 124 | 124 | public function getLastKarmaTimeForRoom($roomId) |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | * @param int $lifeTime The cache lifetime. |
| 70 | 70 | * If != 0, sets a specific lifetime for this cache entry (0 => infinite lifeTime). |
| 71 | 71 | * |
| 72 | - * @return boolean TRUE if the entry was successfully stored in the cache, FALSE otherwise. |
|
| 72 | + * @return boolean|null TRUE if the entry was successfully stored in the cache, FALSE otherwise. |
|
| 73 | 73 | */ |
| 74 | 74 | public function save($id, $data, $lifeTime = 0) |
| 75 | 75 | { |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | /** |
| 172 | - * @param $route |
|
| 172 | + * @param string $route |
|
| 173 | 173 | * @param array $args |
| 174 | 174 | * @param string $method |
| 175 | 175 | * @return Stream |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | /** |
| 184 | - * @param $route |
|
| 184 | + * @param string $route |
|
| 185 | 185 | * @param array $args |
| 186 | 186 | * @param null $content |
| 187 | 187 | * @param string $method |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * @param Message $message |
| 39 | - * @return Status[]|Collection |
|
| 39 | + * @return Collection |
|
| 40 | 40 | */ |
| 41 | 41 | public function validate(Message $message) |
| 42 | 42 | { |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | - * @param $value |
|
| 34 | + * @param \Domains\Middleware\MiddlewareInterface $value |
|
| 35 | 35 | * @param int $priority |
| 36 | 36 | * @return $this |
| 37 | 37 | */ |
@@ -20,7 +20,6 @@ |
||
| 20 | 20 | class UserMapper |
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | - * @param array|\StdClass $attributes |
|
| 24 | 23 | * @return User |
| 25 | 24 | * @throws InvalidArgumentException |
| 26 | 25 | */ |
@@ -22,10 +22,11 @@ |
||
| 22 | 22 | $this->text = preg_replace_callback('%\[url\s*=\s*("(?:[^"]*")|\A[^\']*\Z|(?:[^\'">\]\s]+))\s*(?:[^]\s]*)\]([\W\D\w\s]*?)\[/url\]%iu', |
| 23 | 23 | |
| 24 | 24 | function ($matches) { |
| 25 | - if (isset($matches[1]) && isset($matches[2])) |
|
| 26 | - return "<".$matches[1]."|".$matches[2].">"; |
|
| 27 | - else |
|
| 28 | - throw new \RuntimeException(sprintf("Text identified by '%d' has malformed BBCode urls", $this->id)); |
|
| 25 | + if (isset($matches[1]) && isset($matches[2])) { |
|
| 26 | + return "<".$matches[1]."|".$matches[2].">"; |
|
| 27 | + } else { |
|
| 28 | + throw new \RuntimeException(sprintf("Text identified by '%d' has malformed BBCode urls", $this->id)); |
|
| 29 | + } |
|
| 29 | 30 | }, |
| 30 | 31 | |
| 31 | 32 | $this->text |