@@ -138,7 +138,7 @@  | 
                                                    ||
| 138 | 138 | *  | 
                                                        
| 139 | 139 | * @access public  | 
                                                        
| 140 | 140 | * @param int|array $id  | 
                                                        
| 141 | - * @return array  | 
                                                        |
| 141 | + * @return string  | 
                                                        |
| 142 | 142 | */  | 
                                                        
| 143 | 143 |      public function get_category($id) { | 
                                                        
| 144 | 144 | $this->unsorted();  | 
                                                        
@@ -30,6 +30,9 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 94 | 103 | }  | 
                                                        
| 95 | 104 | |
| 96 | 105 | /**  | 
                                                        
| 97 | - * @param $url  | 
                                                        |
| 106 | + * @param string $url  | 
                                                        |
| 98 | 107 | *  | 
                                                        
| 99 | 108 | * @return bool|Route  | 
                                                        
| 100 | 109 | */  | 
                                                        
@@ -6,7 +6,6 @@  | 
                                                    ||
| 6 | 6 | use core\models\Route;  | 
                                                        
| 7 | 7 | use Exception;  | 
                                                        
| 8 | 8 | use stdClass;  | 
                                                        
| 9 | -use TrueBV\Punycode;  | 
                                                        |
| 10 | 9 | |
| 11 | 10 |  (defined('BASEPATH')) OR exit('No direct script access allowed'); | 
                                                        
| 12 | 11 | |
@@ -86,6 +86,9 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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) { |