@@ -50,6 +50,9 @@ |
||
50 | 50 | |
51 | 51 | /** |
52 | 52 | * {@inheritdoc} |
53 | + * @param string $format |
|
54 | + * @param string $resource |
|
55 | + * @param string $locale |
|
53 | 56 | */ |
54 | 57 | public function addResource($format, $resource, $locale, $domain = 'messages') |
55 | 58 | { |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * Translates the given string. |
137 | 137 | * |
138 | 138 | * @param string|\Kdyby\Translation\Phrase|mixed $message The message id |
139 | - * @param int|array|NULL $count The number to use to find the indice of the message |
|
139 | + * @param integer|null $count The number to use to find the indice of the message |
|
140 | 140 | * @param string|array|NULL $parameters An array of parameters for the message |
141 | 141 | * @param string|NULL $domain The domain for the message |
142 | 142 | * @param string|NULL $locale The locale |
@@ -197,6 +197,8 @@ discard block |
||
197 | 197 | |
198 | 198 | /** |
199 | 199 | * {@inheritdoc} |
200 | + * @param string $domain |
|
201 | + * @param string $locale |
|
200 | 202 | */ |
201 | 203 | public function trans($message, array $parameters = [], $domain = NULL, $locale = NULL) |
202 | 204 | { |
@@ -224,6 +226,8 @@ discard block |
||
224 | 226 | |
225 | 227 | /** |
226 | 228 | * {@inheritdoc} |
229 | + * @param string $domain |
|
230 | + * @param string $locale |
|
227 | 231 | */ |
228 | 232 | public function transChoice($message, $number, array $parameters = [], $domain = NULL, $locale = NULL) |
229 | 233 | { |
@@ -53,8 +53,8 @@ |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
56 | - * @param string|\Kdyby\Translation\Phrase $message |
|
57 | - * @param int|array|NULL $count |
|
56 | + * @param string $message |
|
57 | + * @param integer|null $count |
|
58 | 58 | * @param array|string|NULL $parameters |
59 | 59 | * @param string|NULL $domain |
60 | 60 | * @param string|NULL $locale |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | } |
226 | 226 | |
227 | 227 | /** |
228 | - * @param \Exception|\Throwable $e |
|
228 | + * @param \Exception $e |
|
229 | 229 | * @param string|NULL $domain |
230 | 230 | */ |
231 | 231 | public function choiceError($e, $domain) |
@@ -338,6 +338,7 @@ discard block |
||
338 | 338 | /** |
339 | 339 | * Returns link to editor. |
340 | 340 | * |
341 | + * @param string $text |
|
341 | 342 | * @return \Nette\Utils\Html|string |
342 | 343 | */ |
343 | 344 | private static function editorLink($file, $line, $text = NULL) |
@@ -21,6 +21,7 @@ discard block |
||
21 | 21 | * |
22 | 22 | * @param string $format The format of the loader |
23 | 23 | * @param \Symfony\Component\Translation\Loader\LoaderInterface $loader |
24 | + * @return void |
|
24 | 25 | */ |
25 | 26 | public function addLoader($format, LoaderInterface $loader); |
26 | 27 | |
@@ -33,8 +34,9 @@ discard block |
||
33 | 34 | * @param string $format |
34 | 35 | * @param string $resource |
35 | 36 | * @param string $domain |
36 | - * @param \Symfony\Component\Translation\MessageCatalogue $catalogue |
|
37 | + * @param MessageCatalogue $catalogue |
|
37 | 38 | * @throws \Kdyby\Translation\LoaderNotFoundException |
39 | + * @return void |
|
38 | 40 | */ |
39 | 41 | public function loadResource($format, $resource, $domain, MessageCatalogue $catalogue); |
40 | 42 |