@@ -26,6 +26,7 @@ discard block |
||
26 | 26 | * |
27 | 27 | * @param string|array $resource Files, a file or a directory |
28 | 28 | * @param MessageCatalogue $catalogue The catalogue |
29 | + * @return void |
|
29 | 30 | */ |
30 | 31 | public function extract($resource, MessageCatalogue $catalogue); |
31 | 32 | |
@@ -33,6 +34,7 @@ discard block |
||
33 | 34 | * Sets the prefix that should be used for new found messages. |
34 | 35 | * |
35 | 36 | * @param string $prefix The prefix |
37 | + * @return void |
|
36 | 38 | */ |
37 | 39 | public function setPrefix($prefix); |
38 | 40 | } |
@@ -245,7 +245,7 @@ |
||
245 | 245 | /** |
246 | 246 | * @param string|array $directory |
247 | 247 | * |
248 | - * @return array |
|
248 | + * @return Finder |
|
249 | 249 | */ |
250 | 250 | protected function extractFromDirectory($directory) |
251 | 251 | { |
@@ -96,6 +96,9 @@ |
||
96 | 96 | EOF; |
97 | 97 | } |
98 | 98 | |
99 | + /** |
|
100 | + * @param string $number |
|
101 | + */ |
|
99 | 102 | private static function convertNumber($number) |
100 | 103 | { |
101 | 104 | if ('-Inf' === $number) { |
@@ -51,6 +51,7 @@ discard block |
||
51 | 51 | * @param string $id The message id |
52 | 52 | * @param string $translation The messages translation |
53 | 53 | * @param string $domain The domain name |
54 | + * @return void |
|
54 | 55 | */ |
55 | 56 | public function set($id, $translation, $domain = 'messages'); |
56 | 57 | |
@@ -89,6 +90,7 @@ discard block |
||
89 | 90 | * |
90 | 91 | * @param array $messages An array of translations |
91 | 92 | * @param string $domain The domain name |
93 | + * @return void |
|
92 | 94 | */ |
93 | 95 | public function replace($messages, $domain = 'messages'); |
94 | 96 | |
@@ -97,6 +99,7 @@ discard block |
||
97 | 99 | * |
98 | 100 | * @param array $messages An array of translations |
99 | 101 | * @param string $domain The domain name |
102 | + * @return void |
|
100 | 103 | */ |
101 | 104 | public function add($messages, $domain = 'messages'); |
102 | 105 | |
@@ -104,6 +107,7 @@ discard block |
||
104 | 107 | * Merges translations from the given Catalogue into the current one. |
105 | 108 | * |
106 | 109 | * The two catalogues must have the same locale. |
110 | + * @return void |
|
107 | 111 | */ |
108 | 112 | public function addCatalogue(self $catalogue); |
109 | 113 | |
@@ -112,6 +116,7 @@ discard block |
||
112 | 116 | * only when the translation does not exist. |
113 | 117 | * |
114 | 118 | * This is used to provide default translations when they do not exist for the current locale. |
119 | + * @return void |
|
115 | 120 | */ |
116 | 121 | public function addFallbackCatalogue(self $catalogue); |
117 | 122 | |
@@ -131,6 +136,7 @@ discard block |
||
131 | 136 | |
132 | 137 | /** |
133 | 138 | * Adds a resource for this collection. |
139 | + * @return void |
|
134 | 140 | */ |
135 | 141 | public function addResource(ResourceInterface $resource); |
136 | 142 | } |
@@ -38,6 +38,7 @@ discard block |
||
38 | 38 | * @param string $key The key |
39 | 39 | * @param mixed $value The value |
40 | 40 | * @param string $domain The domain name |
41 | + * @return void |
|
41 | 42 | */ |
42 | 43 | public function setMetadata($key, $value, $domain = 'messages'); |
43 | 44 | |
@@ -49,6 +50,7 @@ discard block |
||
49 | 50 | * |
50 | 51 | * @param string $key The key |
51 | 52 | * @param string $domain The domain name |
53 | + * @return void |
|
52 | 54 | */ |
53 | 55 | public function deleteMetadata($key = '', $domain = 'messages'); |
54 | 56 | } |
@@ -25,6 +25,7 @@ |
||
25 | 25 | * |
26 | 26 | * @param string $directory |
27 | 27 | * @param MessageCatalogue $catalogue |
28 | + * @return void |
|
28 | 29 | */ |
29 | 30 | public function read($directory, MessageCatalogue $catalogue); |
30 | 31 | } |
@@ -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; |