@@ -30,7 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * @param Message $message |
32 | 32 | * |
33 | - * @return array |
|
33 | + * @return Message |
|
34 | 34 | */ |
35 | 35 | public function handle(Message $message) |
36 | 36 | { |
@@ -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 | { |
@@ -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 |