Completed
Pull Request — development (#107)
by
unknown
09:56
created
application/modules/translator/classes/LangReplacer.php 1 patch
Doc Comments   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -86,6 +86,9 @@  discard block
 block discarded – undo
86 86
 
87 87
     }
88 88
 
89
+    /**
90
+     * @param string $saveDomain
91
+     */
89 92
     private static function savePoMo($saveDomain) {
90 93
         foreach (self::$domainTranslations as $domain => $langs) {
91 94
             if ($domain == $saveDomain) {
@@ -237,7 +240,7 @@  discard block
 block discarded – undo
237 240
 
238 241
     /**
239 242
      * Search lang function call in all php|tpl files recursively
240
-     * @param $dir
243
+     * @param string $dir
241 244
      * @return array
242 245
      */
243 246
     public static function parseDir($dir) {
@@ -307,7 +310,7 @@  discard block
 block discarded – undo
307 310
 
308 311
     /**
309 312
      * Find all language calls in string
310
-     * @param $fileContent
313
+     * @param string $fileContent
311 314
      * @param string $word
312 315
      * @return array
313 316
      */
@@ -324,7 +327,7 @@  discard block
 block discarded – undo
324 327
     /**
325 328
      * Create lang function call
326 329
      * @param $function
327
-     * @param $word
330
+     * @param string $word
328 331
      * @param $domain
329 332
      * @param $params
330 333
      * @return string
@@ -335,7 +338,7 @@  discard block
 block discarded – undo
335 338
 
336 339
     /**
337 340
      * Create regular expression for lang call
338
-     * @param $word
341
+     * @param string $word
339 342
      * @return string
340 343
      */
341 344
     private static function createExpression($word = null) {
@@ -357,7 +360,7 @@  discard block
 block discarded – undo
357 360
     /**
358 361
      * Get lang directories for module
359 362
      *
360
-     * @param $module
363
+     * @param string $module
361 364
      * @return array ['en_US', ...]
362 365
      */
363 366
     public static function getModuleLanguages($module) {
@@ -410,7 +413,7 @@  discard block
 block discarded – undo
410 413
      * Languages directory
411 414
      *
412 415
      * @param $domain
413
-     * @param $locale
416
+     * @param string $locale
414 417
      * @return string
415 418
      */
416 419
     public static function getTranslationDir($domain, $locale) {
Please login to merge, or discard this patch.