@@ -100,6 +100,9 @@ |
||
| 100 | 100 | return $this->display($io, $filesInfo); |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | + /** |
|
| 104 | + * @param string $content |
|
| 105 | + */ |
|
| 103 | 106 | private function validate($content, $file = null) |
| 104 | 107 | { |
| 105 | 108 | $errors = array(); |
@@ -26,6 +26,7 @@ |
||
| 26 | 26 | * |
| 27 | 27 | * @param MessageCatalogue $messages The message catalogue |
| 28 | 28 | * @param array $options Options that are used by the dumper |
| 29 | + * @return void |
|
| 29 | 30 | */ |
| 30 | 31 | public function dump(MessageCatalogue $messages, $options = array()); |
| 31 | 32 | } |
@@ -55,6 +55,9 @@ discard block |
||
| 55 | 55 | return 'xlf'; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | + /** |
|
| 59 | + * @param string $domain |
|
| 60 | + */ |
|
| 58 | 61 | private function dumpXliff1($defaultLocale, MessageCatalogue $messages, $domain, array $options = array()) |
| 59 | 62 | { |
| 60 | 63 | $toolInfo = array('tool-id' => 'symfony', 'tool-name' => 'Symfony'); |
@@ -129,6 +132,9 @@ discard block |
||
| 129 | 132 | return $dom->saveXML(); |
| 130 | 133 | } |
| 131 | 134 | |
| 135 | + /** |
|
| 136 | + * @param string $domain |
|
| 137 | + */ |
|
| 132 | 138 | private function dumpXliff2($defaultLocale, MessageCatalogue $messages, $domain, array $options = array()) |
| 133 | 139 | { |
| 134 | 140 | $dom = new \DOMDocument('1.0', 'utf-8'); |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | abstract protected function canBeExtracted($file); |
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | - * @param string|array $resource Files, a file or a directory |
|
| 75 | + * @param string $resource Files, a file or a directory |
|
| 76 | 76 | * |
| 77 | 77 | * @return array files to be extracted |
| 78 | 78 | */ |
@@ -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 | } |