@@ -137,6 +137,9 @@ |
||
| 137 | 137 | $this->assertEquals($expectedMessages, array_values($dataCollector->getMessages()->getValue(true))); |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | + /** |
|
| 141 | + * @return DataCollectorTranslator |
|
| 142 | + */ |
|
| 140 | 143 | private function getTranslator() |
| 141 | 144 | { |
| 142 | 145 | $translator = $this |
@@ -261,6 +261,9 @@ |
||
| 261 | 261 | $translator->trans('foo'); |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | + /** |
|
| 265 | + * @param string $locale |
|
| 266 | + */ |
|
| 264 | 267 | protected function getCatalogue($locale, $messages, $resources = array()) |
| 265 | 268 | { |
| 266 | 269 | $catalogue = new MessageCatalogue($locale); |
@@ -537,6 +537,9 @@ |
||
| 537 | 537 | { |
| 538 | 538 | protected $str; |
| 539 | 539 | |
| 540 | + /** |
|
| 541 | + * @param string $str |
|
| 542 | + */ |
|
| 540 | 543 | public function __construct($str) |
| 541 | 544 | { |
| 542 | 545 | $this->str = $str; |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | /** |
| 240 | 240 | * Gets the loaders. |
| 241 | 241 | * |
| 242 | - * @return array LoaderInterface[] |
|
| 242 | + * @return LoaderInterface[] LoaderInterface[] |
|
| 243 | 243 | */ |
| 244 | 244 | protected function getLoaders() |
| 245 | 245 | { |
@@ -298,6 +298,9 @@ discard block |
||
| 298 | 298 | $this->catalogues[$locale] = include $cache->getPath(); |
| 299 | 299 | } |
| 300 | 300 | |
| 301 | + /** |
|
| 302 | + * @param string $locale |
|
| 303 | + */ |
|
| 301 | 304 | private function dumpCatalogue($locale, ConfigCacheInterface $cache): void |
| 302 | 305 | { |
| 303 | 306 | $this->initializeCatalogue($locale); |
@@ -353,11 +356,17 @@ discard block |
||
| 353 | 356 | return $fallbackContent; |
| 354 | 357 | } |
| 355 | 358 | |
| 359 | + /** |
|
| 360 | + * @param string $locale |
|
| 361 | + */ |
|
| 356 | 362 | private function getCatalogueCachePath($locale) |
| 357 | 363 | { |
| 358 | 364 | return $this->cacheDir.'/catalogue.'.$locale.'.'.strtr(substr(base64_encode(hash('sha256', serialize($this->fallbackLocales), true)), 0, 7), '/', '_').'.php'; |
| 359 | 365 | } |
| 360 | 366 | |
| 367 | + /** |
|
| 368 | + * @param string $locale |
|
| 369 | + */ |
|
| 361 | 370 | private function doLoadCatalogue($locale): void |
| 362 | 371 | { |
| 363 | 372 | $this->catalogues[$locale] = new MessageCatalogue($locale); |
@@ -372,6 +381,9 @@ discard block |
||
| 372 | 381 | } |
| 373 | 382 | } |
| 374 | 383 | |
| 384 | + /** |
|
| 385 | + * @param string $locale |
|
| 386 | + */ |
|
| 375 | 387 | private function loadFallbackCatalogues($locale): void |
| 376 | 388 | { |
| 377 | 389 | $current = $this->catalogues[$locale]; |
@@ -55,6 +55,7 @@ |
||
| 55 | 55 | * @param string $locale The locale |
| 56 | 56 | * |
| 57 | 57 | * @throws InvalidArgumentException If the locale contains invalid characters |
| 58 | + * @return boolean|null |
|
| 58 | 59 | */ |
| 59 | 60 | public function setLocale($locale); |
| 60 | 61 | |
@@ -29,6 +29,7 @@ |
||
| 29 | 29 | * @param array $options Options that are passed to the dumper |
| 30 | 30 | * |
| 31 | 31 | * @throws InvalidArgumentException |
| 32 | + * @return void |
|
| 32 | 33 | */ |
| 33 | 34 | public function write(MessageCatalogue $catalogue, $format, $options = array()); |
| 34 | 35 | } |
@@ -23,12 +23,19 @@ |
||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param boolean $arg1 |
|
| 28 | + * @param boolean $arg2 |
|
| 29 | + */ |
|
| 26 | 30 | public function second($arg1, $arg2) |
| 27 | 31 | { |
| 28 | 32 | self::third([1, 2, 3]); |
| 29 | 33 | } |
| 30 | 34 | |
| 31 | 35 | |
| 36 | + /** |
|
| 37 | + * @param integer[] $arg1 |
|
| 38 | + */ |
|
| 32 | 39 | public static function third($arg1) |
| 33 | 40 | { |
| 34 | 41 | throw new Exception('The my exception', 123); |
@@ -17,12 +17,19 @@ |
||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | |
| 20 | +/** |
|
| 21 | + * @param boolean $arg1 |
|
| 22 | + * @param boolean $arg2 |
|
| 23 | + */ |
|
| 20 | 24 | function second($arg1, $arg2) |
| 21 | 25 | { |
| 22 | 26 | third([1, 2, 3]); |
| 23 | 27 | } |
| 24 | 28 | |
| 25 | 29 | |
| 30 | +/** |
|
| 31 | + * @param integer[] $arg1 |
|
| 32 | + */ |
|
| 26 | 33 | function third($arg1) |
| 27 | 34 | { |
| 28 | 35 | throw new Exception('The my exception', 123); |
@@ -141,6 +141,7 @@ |
||
| 141 | 141 | |
| 142 | 142 | |
| 143 | 143 | /** |
| 144 | + * @param string $suffix |
|
| 144 | 145 | * @return array |
| 145 | 146 | */ |
| 146 | 147 | private function renderPanels($suffix = null) |