@@ -390,6 +390,10 @@ discard block |
||
390 | 390 | self::$log = []; |
391 | 391 | } |
392 | 392 | |
393 | + /** |
|
394 | + * @param string $value |
|
395 | + * @param string $label |
|
396 | + */ |
|
393 | 397 | public static function log($value, $label = null, $type = 'LOG', $options = []) |
394 | 398 | { |
395 | 399 | $value = str_replace(["\n", "\t"], ' ', $value); |
@@ -522,6 +526,9 @@ discard block |
||
522 | 526 | } |
523 | 527 | } |
524 | 528 | |
529 | + /** |
|
530 | + * @param string $type |
|
531 | + */ |
|
525 | 532 | private function getFbType($type) |
526 | 533 | { |
527 | 534 | switch ($type) { |
@@ -559,8 +566,8 @@ discard block |
||
559 | 566 | * Warning |
560 | 567 | * |
561 | 568 | * @param $message |
562 | - * @param $file |
|
563 | - * @param $line |
|
569 | + * @param string $file |
|
570 | + * @param integer $line |
|
564 | 571 | * @param \Exception $e |
565 | 572 | * @param null $errcontext |
566 | 573 | * @param int $errno |
@@ -580,8 +587,8 @@ discard block |
||
580 | 587 | * Fatal - throw ice exception |
581 | 588 | * |
582 | 589 | * @param $message |
583 | - * @param $file |
|
584 | - * @param $line |
|
590 | + * @param string $file |
|
591 | + * @param integer $line |
|
585 | 592 | * @param \Exception $e |
586 | 593 | * @param null $errcontext |
587 | 594 | * @param int $errno |
@@ -10,7 +10,6 @@ |
||
10 | 10 | namespace Ice\Core; |
11 | 11 | |
12 | 12 | use Ice\Core; |
13 | -use Ice\Helper\String; |
|
14 | 13 | |
15 | 14 | /** |
16 | 15 | * Class DataSource |
@@ -172,6 +172,9 @@ |
||
172 | 172 | ->send(); |
173 | 173 | } |
174 | 174 | |
175 | + /** |
|
176 | + * @param string $expired |
|
177 | + */ |
|
175 | 178 | public function prolongate($expired) |
176 | 179 | { |
177 | 180 | // TODO: Implement prolongate() method. |
@@ -1,17 +1,12 @@ |
||
1 | 1 | <?php namespace Ice\Core; |
2 | 2 | |
3 | -use Ice\Core\Config; |
|
4 | 3 | use Ice\Core\DataSource; |
5 | -use Ice\Core\Debuger; |
|
6 | 4 | use Ice\Core\Model; |
7 | -use Ice\Core\Model\Security_User; |
|
8 | 5 | use Ice\Core\Model_Account; |
9 | 6 | use Ice\Core\Request; |
10 | 7 | use Ice\Core\Router; |
11 | 8 | use Ice\Core\Security; |
12 | -use Ice\Exception\Security_Account_Login; |
|
13 | 9 | use Ice\Exception\Security_Account_Verify; |
14 | -use Ice\Helper\Date; |
|
15 | 10 | use Ice\Helper\String; |
16 | 11 | use Ice\Message\Mail; |
17 | 12 | use Ice\Model\Account; |
@@ -56,7 +56,7 @@ |
||
56 | 56 | * @param array $data |
57 | 57 | * @param null $layout |
58 | 58 | * @param string $templateType |
59 | - * @return mixed |
|
59 | + * @return string |
|
60 | 60 | * @throws \Exception |
61 | 61 | * @author dp <[email protected]> |
62 | 62 | * |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | use Ice\Core; |
13 | 13 | use Ice\Helper\Validator as Helper_Validator; |
14 | -use Ice\Widget\Model_Form; |
|
15 | 14 | |
16 | 15 | /** |
17 | 16 | * Class Validator |
@@ -193,6 +193,9 @@ discard block |
||
193 | 193 | return $this; |
194 | 194 | } |
195 | 195 | |
196 | + /** |
|
197 | + * @return string |
|
198 | + */ |
|
196 | 199 | public function getId($postfix = '') |
197 | 200 | { |
198 | 201 | if ($postfix) { |
@@ -244,6 +247,9 @@ discard block |
||
244 | 247 | $this->offset = $offset; |
245 | 248 | } |
246 | 249 | |
250 | + /** |
|
251 | + * @param integer $offset |
|
252 | + */ |
|
247 | 253 | public function cloneComponent($offset) |
248 | 254 | { |
249 | 255 | $widgetComponent = clone $this; |
@@ -399,7 +405,7 @@ discard block |
||
399 | 405 | // } |
400 | 406 | |
401 | 407 | /** |
402 | - * @param $name |
|
408 | + * @param string $name |
|
403 | 409 | * @param $value |
404 | 410 | */ |
405 | 411 | public function setOption($name, $value) |
@@ -409,7 +415,7 @@ discard block |
||
409 | 415 | |
410 | 416 | /** |
411 | 417 | * @param string $classes |
412 | - * @return null |
|
418 | + * @return string |
|
413 | 419 | */ |
414 | 420 | public function getClassAttribute($classes = '') |
415 | 421 | { |
@@ -594,6 +600,9 @@ discard block |
||
594 | 600 | return $valueKey; |
595 | 601 | } |
596 | 602 | |
603 | + /** |
|
604 | + * @return string |
|
605 | + */ |
|
597 | 606 | public function render(Render $render = null) |
598 | 607 | { |
599 | 608 | if ($render === null) { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * |
141 | 141 | * @param $key |
142 | 142 | * @param int $step |
143 | - * @return mixed new value |
|
143 | + * @return integer new value |
|
144 | 144 | * |
145 | 145 | * @author dp <[email protected]> |
146 | 146 | * |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | * |
158 | 158 | * @param $key |
159 | 159 | * @param int $step |
160 | - * @return mixed new value |
|
160 | + * @return integer new value |
|
161 | 161 | * |
162 | 162 | * @author dp <[email protected]> |
163 | 163 | * |
@@ -178,7 +178,7 @@ |
||
178 | 178 | * Connect to data provider |
179 | 179 | * |
180 | 180 | * @param $connection |
181 | - * @return boolean |
|
181 | + * @return DataProvider |
|
182 | 182 | * |
183 | 183 | * @author dp <[email protected]> |
184 | 184 | * |
@@ -262,7 +262,7 @@ |
||
262 | 262 | /** |
263 | 263 | * Connect to data provider |
264 | 264 | * |
265 | - * @param $connection |
|
265 | + * @param ArrayObject $connection |
|
266 | 266 | * @return boolean |
267 | 267 | * |
268 | 268 | * @author dp <[email protected]> |
@@ -256,6 +256,10 @@ |
||
256 | 256 | return (bool)$connection = $dataProvider->set([$key => $route])[$key]; |
257 | 257 | } |
258 | 258 | |
259 | + /** |
|
260 | + * @param string $url |
|
261 | + * @param string $method |
|
262 | + */ |
|
259 | 263 | public function getRoute($url, $method) |
260 | 264 | { |
261 | 265 | list($matchedRoutes, $foundRoutes) = $this->getRoutes($url, $method); |