Completed
Push — master ( 76d833...1936b9 )
by
unknown
05:56
created
src/Charcoal/Translation/ConfigurableTranslationTrait.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      *
90 90
      *     If an empty array is provided, the method should consider this a request
91 91
      *     to empty the languages store.
92
-     * @return MultilingualAwareInterface Chainable
92
+     * @return ConfigurableTranslationTrait Chainable
93 93
      */
94 94
     public function setLanguages(array $langs = [])
95 95
     {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      *
104 104
      * @uses   ConfigurableInterface::config()
105 105
      * @param  LanguageInterface|array|string $lang A language object or identifier.
106
-     * @return MultilingualAwareInterface Chainable
106
+     * @return ConfigurableTranslationTrait Chainable
107 107
      */
108 108
     public function addLanguage($lang)
109 109
     {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      *
118 118
      * @uses   ConfigurableInterface::config()
119 119
      * @param  LanguageInterface|string $lang A language object or identifier.
120
-     * @return MultilingualAwareInterface Chainable
120
+     * @return ConfigurableTranslationTrait Chainable
121 121
      */
122 122
     public function removeLanguage($lang)
123 123
     {
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      *
172 172
      * @uses   ConfigurableInterface::config()
173 173
      * @param  LanguageInterface|string|null $lang A language object or identifier.
174
-     * @return MultilingualAwareInterface Chainable
174
+     * @return ConfigurableTranslationTrait Chainable
175 175
      */
176 176
     public function setDefaultLanguage($lang = null)
177 177
     {
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      *
205 205
      * @uses   ConfigurableInterface::config()
206 206
      * @param  LanguageInterface|string|null $lang A language object or identifier.
207
-     * @return MultilingualAwareInterface Chainable
207
+     * @return ConfigurableTranslationTrait Chainable
208 208
      */
209 209
     public function setCurrentLanguage($lang = null)
210 210
     {
Please login to merge, or discard this patch.
src/Charcoal/Translation/Script/CatalogScript.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -853,7 +853,7 @@  discard block
 block discarded – undo
853 853
     /**
854 854
      * Retrieve the default included paths to scan for translatable text.
855 855
      *
856
-     * @return array
856
+     * @return string[]
857 857
      */
858 858
     public function defaultIncludedPaths()
859 859
     {
@@ -964,7 +964,7 @@  discard block
 block discarded – undo
964 964
     /**
965 965
      * Retrieve the supported output formats for the translations file.
966 966
      *
967
-     * @return array
967
+     * @return string[]
968 968
      */
969 969
     public function outputFormats()
970 970
     {
@@ -1167,7 +1167,7 @@  discard block
 block discarded – undo
1167 1167
     /**
1168 1168
      * Retrieve the language of the source code.
1169 1169
      *
1170
-     * @return array|null
1170
+     * @return string|null
1171 1171
      */
1172 1172
     public function sourceLanguage()
1173 1173
     {
Please login to merge, or discard this patch.
src/Charcoal/Translation/TranslationString.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     /**
195 195
      * Remove a translation value specified by an available language.
196 196
      *
197
-     * @param  LanguageInterface|string $lang A language object or identifier.
197
+     * @param  string $lang A language object or identifier.
198 198
      * @return self
199 199
      * @throws InvalidArgumentException If language is invalid.
200 200
      */
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
      * the translation in the default language is returned.
226 226
      * If $lang isn't provided, the translation in the current language is returned.
227 227
      *
228
-     * @param  LanguageInterface|string|null $lang Optional supported language to retrieve a translation in.
228
+     * @param  string $lang Optional supported language to retrieve a translation in.
229 229
      * @return string
230 230
      * @throws InvalidArgumentException If language is invalid.
231 231
      * @todo   When the language is invalid, should we fallback to the default language
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
      * a subset of the object's available languages (if any).
331 331
      *
332 332
      * @param  (LanguageInterface|string)[] $langs Optional language(s) filters.
333
-     * @return (LanguageInterface|string)[] An array of available languages.
333
+     * @return string[] An array of available languages.
334 334
      */
335 335
     public function translations(array $langs = [])
336 336
     {
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
      *
547 547
      * @param  mixed $lang A language object or identifier.
548 548
      * @throws InvalidArgumentException If language is invalid.
549
-     * @return string|mixed A language identifier.
549
+     * @return string A language identifier.
550 550
      */
551 551
     protected function parseLanguageIdent($lang)
552 552
     {
Please login to merge, or discard this patch.
src/Charcoal/Translation/Catalog/ResourceRepository.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * Set the cache service.
122 122
      *
123 123
      * @param  CacheItemPoolInterface $cache A PSR-6 compliant cache pool instance.
124
-     * @return MetadataLoader Chainable
124
+     * @return ResourceRepository Chainable
125 125
      */
126 126
     private function setCachePool(CacheItemPoolInterface $cache)
127 127
     {
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
      *
440 440
      * @param  string $className The class name of the object catalog model.
441 441
      * @throws InvalidArgumentException If the class name is not a string.
442
-     * @return AbstractPropertyDisplay Chainable
442
+     * @return ResourceRepository Chainable
443 443
      */
444 444
     public function setCatalogClass($className)
445 445
     {
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
      *
493 493
      * @param  string $className The class name of the object resource model.
494 494
      * @throws InvalidArgumentException If the class name is not a string.
495
-     * @return AbstractPropertyDisplay Chainable
495
+     * @return ResourceRepository Chainable
496 496
      */
497 497
     public function setResourceClass($className)
498 498
     {
Please login to merge, or discard this patch.
src/Charcoal/Translation/TranslatableTrait.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *
68 68
      * @used-by self::setLanguages()
69 69
      * @used-by self::removeLanguage()
70
-     * @return  MultilingualAwareInterface Chainable
70
+     * @return  TranslatableTrait Chainable
71 71
      */
72 72
     public function resolveSpecialLanguages()
73 73
     {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      *
143 143
      *     If an empty array is provided, the method should consider this a request
144 144
      *     to clear the languages store.
145
-     * @return MultilingualAwareInterface Chainable
145
+     * @return TranslatableTrait Chainable
146 146
      */
147 147
     public function setLanguages(array $langs = [])
148 148
     {
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      * Append a list of languages to the object.
162 162
      *
163 163
      * @param  (LanguageInterface|string)[] $langs The languages to set.
164
-     * @return MultilingualAwareInterface Chainable
164
+     * @return TranslatableTrait Chainable
165 165
      */
166 166
     public function addLanguages(array $langs)
167 167
     {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      * this method will replace the existing one.
185 185
      *
186 186
      * @param  LanguageInterface|array|string $lang A language object or identifier.
187
-     * @return MultilingualAwareInterface Chainable
187
+     * @return TranslatableTrait Chainable
188 188
      *
189 189
      * @throws InvalidArgumentException If the language is invalid.
190 190
      */
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      *
214 214
      * @uses   self::resolve_specialLanguages()
215 215
      * @param  LanguageInterface|string $lang A language object or identifier.
216
-     * @return MultilingualAwareInterface Chainable
216
+     * @return TranslatableTrait Chainable
217 217
      *
218 218
      * @throws InvalidArgumentException If an array member isn't a string or instance of LanguageInterface.
219 219
      */
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
      *
305 305
      * @param  LanguageInterface|string|null $lang A language object or identifier.
306 306
      * @throws InvalidArgumentException If language is invalid.
307
-     * @return MultilingualAwareInterface Chainable
307
+     * @return TranslatableTrait Chainable
308 308
      */
309 309
     public function setDefaultLanguage($lang = null)
310 310
     {
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
      *
357 357
      * @param  LanguageInterface|string|null $lang A language object or identifier.
358 358
      * @throws InvalidArgumentException If language is invalid.
359
-     * @return MultilingualAwareInterface Chainable
359
+     * @return TranslatableTrait Chainable
360 360
      */
361 361
     public function setCurrentLanguage($lang = null)
362 362
     {
Please login to merge, or discard this patch.