@@ -23,7 +23,7 @@ |
||
23 | 23 | * @param mixed $setting Can be an array, a string, |
24 | 24 | * or a special formatted string |
25 | 25 | * (eg 'app|path|project'). |
26 | - * @param mixed $defaultValue |
|
26 | + * @param boolean $defaultValue |
|
27 | 27 | * @return mixed |
28 | 28 | */ |
29 | 29 | final public static function get($storage = [], $setting = null, $defaultValue = false) |
@@ -61,8 +61,6 @@ |
||
61 | 61 | * |
62 | 62 | * Data is appended to any existing data. |
63 | 63 | * @param string $setting Name of setting to load. |
64 | - * @param string $path Directory where the file is located. |
|
65 | - * File name must be <$setting>.php |
|
66 | 64 | * @return mixed |
67 | 65 | */ |
68 | 66 | final public function load($setting, $pathProject) |
@@ -200,6 +200,9 @@ |
||
200 | 200 | return trim($string, ' /'); |
201 | 201 | } |
202 | 202 | |
203 | + /** |
|
204 | + * @param string $string |
|
205 | + */ |
|
203 | 206 | final private function removeSuffix($string) |
204 | 207 | { |
205 | 208 | $suffixes = $this->setting('suffixes'); |
@@ -27,6 +27,9 @@ |
||
27 | 27 | return [$controller, $action, $args]; |
28 | 28 | } |
29 | 29 | |
30 | + /** |
|
31 | + * @return string |
|
32 | + */ |
|
30 | 33 | final private function parseCustomRoutes($requestCustom, $routes) |
31 | 34 | { |
32 | 35 | if (is_array($routes)) { |
@@ -12,6 +12,9 @@ discard block |
||
12 | 12 | */ |
13 | 13 | private static $libraries = []; |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $classType |
|
17 | + */ |
|
15 | 18 | private static function getFullClassName($className, $classType) |
16 | 19 | { |
17 | 20 | switch ($classType) { |
@@ -78,6 +81,9 @@ discard block |
||
78 | 81 | return $reflection->newInstanceArgs($args); |
79 | 82 | } |
80 | 83 | |
84 | + /** |
|
85 | + * @param string $className |
|
86 | + */ |
|
81 | 87 | public static function getLibrary($className, $storageKey = null, $configName = null) |
82 | 88 | { |
83 | 89 | $fullClassName = self::getFullClassName($className, 'Library'); |