@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | /** |
| 358 | 358 | * Information extractor for col relations path |
| 359 | 359 | * |
| 360 | - * @param string|array $info |
|
| 360 | + * @param string $info |
|
| 361 | 361 | * @return array |
| 362 | 362 | */ |
| 363 | 363 | public static function parseColRecursion($info) |
@@ -429,6 +429,9 @@ discard block |
||
| 429 | 429 | return Model::$cols[static::table()]; |
| 430 | 430 | } |
| 431 | 431 | |
| 432 | + /** |
|
| 433 | + * @param string $colName |
|
| 434 | + */ |
|
| 432 | 435 | public static function genColParams($colName) |
| 433 | 436 | { |
| 434 | 437 | if (empty(static::$cols[$colName]) || static::$storage['type'] == 'moduleConfig') { |
@@ -482,7 +485,7 @@ discard block |
||
| 482 | 485 | * Create new col in data base |
| 483 | 486 | * |
| 484 | 487 | * @param string $colName |
| 485 | - * @return boolean |
|
| 488 | + * @return false|null |
|
| 486 | 489 | */ |
| 487 | 490 | public static function createCol($colName) |
| 488 | 491 | { |
@@ -567,7 +570,7 @@ discard block |
||
| 567 | 570 | /** |
| 568 | 571 | * return relations list |
| 569 | 572 | * |
| 570 | - * @return array |
|
| 573 | + * @return string |
|
| 571 | 574 | */ |
| 572 | 575 | public static function relations() |
| 573 | 576 | { |
@@ -1063,7 +1066,7 @@ discard block |
||
| 1063 | 1066 | * |
| 1064 | 1067 | * @param array $params |
| 1065 | 1068 | * @param array $where |
| 1066 | - * @return boolean |
|
| 1069 | + * @return false|null |
|
| 1067 | 1070 | */ |
| 1068 | 1071 | public static function update($params, $where = []) |
| 1069 | 1072 | { |
@@ -47,8 +47,9 @@ |
||
| 47 | 47 | return self::$_configs['custom'][$path]; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - if (!file_exists($path)) |
|
| 51 | - return []; |
|
| 50 | + if (!file_exists($path)) { |
|
| 51 | + return []; |
|
| 52 | + } |
|
| 52 | 53 | |
| 53 | 54 | return self::$_configs['custom'][$path] = include $path; |
| 54 | 55 | } |