@@ -13,6 +13,10 @@ discard block |
||
13 | 13 | } |
14 | 14 | |
15 | 15 | if (!function_exists('array_get')) { |
16 | + |
|
17 | + /** |
|
18 | + * @param string $key |
|
19 | + */ |
|
16 | 20 | function array_get($array, $key, $default = null) |
17 | 21 | { |
18 | 22 | return ($array[$key] || $array[$key] == '0') ? $array[$key] : $default; |
@@ -132,6 +136,9 @@ discard block |
||
132 | 136 | |
133 | 137 | if (!function_exists('getAllSubDires')) { |
134 | 138 | |
139 | + /** |
|
140 | + * @param string $direPath |
|
141 | + */ |
|
135 | 142 | function getAllSubDires($direPath) |
136 | 143 | { |
137 | 144 | $dirs = []; |
@@ -218,6 +218,9 @@ |
||
218 | 218 | return $sql; |
219 | 219 | } |
220 | 220 | |
221 | + /** |
|
222 | + * @param string $sql |
|
223 | + */ |
|
221 | 224 | private function fetchStatmentExtra($sql) |
222 | 225 | { |
223 | 226 | if (!empty($this->havings)) { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * Add the given path file to the container |
45 | 45 | * |
46 | - * @param string $file |
|
46 | + * @param string $key |
|
47 | 47 | * @return void |
48 | 48 | */ |
49 | 49 | private function share($key, $value) |
@@ -79,7 +79,6 @@ discard block |
||
79 | 79 | * Clean url |
80 | 80 | * |
81 | 81 | * @param string $script |
82 | - * @param string $default |
|
83 | 82 | * @return string |
84 | 83 | */ |
85 | 84 | private function cleanUrl($script, $requestUri) |
@@ -195,7 +194,7 @@ discard block |
||
195 | 194 | * Set value To $_POST For the given key |
196 | 195 | * |
197 | 196 | * @param string $key |
198 | - * @param mixed $valuet |
|
197 | + * @param mixed $value |
|
199 | 198 | * @return mixed |
200 | 199 | */ |
201 | 200 | public function setPost($key, $value) |
@@ -86,8 +86,6 @@ discard block |
||
86 | 86 | /** |
87 | 87 | * Drop a row |
88 | 88 | * |
89 | - * @param string $value |
|
90 | - * @param string $key |
|
91 | 89 | */ |
92 | 90 | public function delete($id) |
93 | 91 | { |
@@ -97,8 +95,6 @@ discard block |
||
97 | 95 | /** |
98 | 96 | * Join |
99 | 97 | * |
100 | - * @param string $value |
|
101 | - * @param string $key |
|
102 | 98 | */ |
103 | 99 | public function joinGetAll($select, $joins, $table = null) |
104 | 100 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | * Redirect to the given path |
42 | 42 | * |
43 | 43 | * @param string $path |
44 | - * @param number $num |
|
44 | + * @param integer $num |
|
45 | 45 | * @return void |
46 | 46 | */ |
47 | 47 | public function redirectTo($path, $num = 0) |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * |
30 | 30 | * @param string $path |
31 | 31 | * @param array $context |
32 | - * @return mixed |
|
32 | + * @return string |
|
33 | 33 | */ |
34 | 34 | public function render($path, array $context) |
35 | 35 | { |
@@ -13,7 +13,7 @@ |
||
13 | 13 | 'middleware' => ['Authenticate', 'Permissions'] |
14 | 14 | ]; |
15 | 15 | |
16 | -$app->route->group($adminOptions, function ($route) { |
|
16 | +$app->route->group($adminOptions, function($route) { |
|
17 | 17 | |
18 | 18 | // Home |
19 | 19 | $route->add('/', 'Home'); |