@@ -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 | |
@@ -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) |
@@ -24,22 +24,22 @@ |
||
| 24 | 24 | class NeonFileDumper extends FileDumper |
| 25 | 25 | { |
| 26 | 26 | |
| 27 | - /** |
|
| 28 | - * {@inheritDoc} |
|
| 29 | - */ |
|
| 30 | - protected function format(MessageCatalogue $messages, $domain) |
|
| 31 | - { |
|
| 32 | - return Neon::encode($messages->all($domain), Neon::BLOCK); |
|
| 33 | - } |
|
| 34 | - |
|
| 35 | - |
|
| 36 | - |
|
| 37 | - /** |
|
| 38 | - * {@inheritDoc} |
|
| 39 | - */ |
|
| 40 | - protected function getExtension() |
|
| 41 | - { |
|
| 42 | - return 'neon'; |
|
| 43 | - } |
|
| 27 | + /** |
|
| 28 | + * {@inheritDoc} |
|
| 29 | + */ |
|
| 30 | + protected function format(MessageCatalogue $messages, $domain) |
|
| 31 | + { |
|
| 32 | + return Neon::encode($messages->all($domain), Neon::BLOCK); |
|
| 33 | + } |
|
| 34 | + |
|
| 35 | + |
|
| 36 | + |
|
| 37 | + /** |
|
| 38 | + * {@inheritDoc} |
|
| 39 | + */ |
|
| 40 | + protected function getExtension() |
|
| 41 | + { |
|
| 42 | + return 'neon'; |
|
| 43 | + } |
|
| 44 | 44 | |
| 45 | 45 | } |