@@ -364,6 +364,9 @@ |
||
364 | 364 | |
365 | 365 | |
366 | 366 | |
367 | + /** |
|
368 | + * @param string $file |
|
369 | + */ |
|
367 | 370 | protected function validateResource($format, $file, $locale, $domain) |
368 | 371 | { |
369 | 372 | $builder = $this->getContainerBuilder(); |
@@ -225,6 +225,9 @@ discard block |
||
225 | 225 | |
226 | 226 | |
227 | 227 | |
228 | + /** |
|
229 | + * @param string $id |
|
230 | + */ |
|
228 | 231 | public function markUntranslated($id) |
229 | 232 | { |
230 | 233 | $this->untranslated[] = $id; |
@@ -233,7 +236,7 @@ discard block |
||
233 | 236 | |
234 | 237 | |
235 | 238 | /** |
236 | - * @param \Exception|\Throwable $e |
|
239 | + * @param \Exception $e |
|
237 | 240 | */ |
238 | 241 | public function choiceError($e) |
239 | 242 | { |
@@ -335,6 +338,7 @@ discard block |
||
335 | 338 | /** |
336 | 339 | * Returns link to editor. |
337 | 340 | * @author David Grudl |
341 | + * @param string $text |
|
338 | 342 | * @return Nette\Utils\Html|string |
339 | 343 | */ |
340 | 344 | private static function editorLink($file, $line, $text = NULL) |
@@ -28,6 +28,7 @@ discard block |
||
28 | 28 | * |
29 | 29 | * @param string $format The format of the loader |
30 | 30 | * @param LoaderInterface $loader |
31 | + * @return void |
|
31 | 32 | */ |
32 | 33 | function addLoader($format, LoaderInterface $loader); |
33 | 34 | |
@@ -46,6 +47,7 @@ discard block |
||
46 | 47 | * @param string $domain |
47 | 48 | * @param MessageCatalogue $catalogue |
48 | 49 | * @throws LoaderNotFoundException |
50 | + * @return void |
|
49 | 51 | */ |
50 | 52 | function loadResource($format, $resource, $domain, MessageCatalogue $catalogue); |
51 | 53 |
@@ -11,7 +11,6 @@ |
||
11 | 11 | namespace Kdyby\Translation; |
12 | 12 | |
13 | 13 | use Kdyby; |
14 | -use Nette; |
|
15 | 14 | use Symfony\Component\Translation\Loader\LoaderInterface; |
16 | 15 | use Symfony\Component\Translation\MessageCatalogue; |
17 | 16 |
@@ -11,7 +11,6 @@ |
||
11 | 11 | namespace Kdyby\Translation\Latte; |
12 | 12 | |
13 | 13 | use Kdyby; |
14 | -use Nette; |
|
15 | 14 | use Latte; |
16 | 15 | use Latte\Compiler; |
17 | 16 | use Latte\MacroNode; |
@@ -35,6 +35,9 @@ |
||
35 | 35 | |
36 | 36 | |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $prefix |
|
40 | + */ |
|
38 | 41 | public function __construct($prefix, ITranslator $translator) |
39 | 42 | { |
40 | 43 | if ($translator instanceof PrefixedTranslator) { // todo: this is just an experiment |
@@ -401,7 +401,7 @@ |
||
401 | 401 | |
402 | 402 | |
403 | 403 | /** |
404 | - * @param $message |
|
404 | + * @param string $message |
|
405 | 405 | * @return array |
406 | 406 | */ |
407 | 407 | private function extractMessageDomain($message) |