Completed
Pull Request — development (#107)
by
unknown
09:56
created
application/models/cms_base.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@
 block discarded – undo
279 279
     }
280 280
 
281 281
     /**
282
-     * @param mixed $locale_id
282
+     * @param integer $locale_id
283 283
      */
284 284
     public function setLocaleId($locale_id) {
285 285
 
Please login to merge, or discard this patch.
application/modules/core/src/Router.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@  discard block
 block discarded – undo
30 30
         $this->modules = $modules;
31 31
     }
32 32
 
33
+    /**
34
+     * @param string $url
35
+     */
33 36
     public function findRoute($url) {
34 37
         $this->checkUrl($url);
35 38
         $url = trim($url, '/');
@@ -64,6 +67,9 @@  discard block
 block discarded – undo
64 67
         }
65 68
     }
66 69
 
70
+    /**
71
+     * @param string $url
72
+     */
67 73
     private function isMainPage($url) {
68 74
         if ($url == '') {
69 75
             $route = new Route();
@@ -73,6 +79,9 @@  discard block
 block discarded – undo
73 79
         }
74 80
     }
75 81
 
82
+    /**
83
+     * @param string $url
84
+     */
76 85
     private function isRoute($url) {
77 86
         $routeUrl = explode('/', $url);
78 87
         $last     = array_pop($routeUrl);
@@ -94,7 +103,7 @@  discard block
 block discarded – undo
94 103
     }
95 104
 
96 105
     /**
97
-     * @param $url
106
+     * @param string $url
98 107
      *
99 108
      * @return bool|Route
100 109
      */
Please login to merge, or discard this patch.
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.