@@ -265,6 +265,9 @@ discard block |
||
| 265 | 265 | } |
| 266 | 266 | } |
| 267 | 267 | |
| 268 | + /** |
|
| 269 | + * @param string $modelClass |
|
| 270 | + */ |
|
| 268 | 271 | private function createModel($modelClass, $table, $force, $dataSourceKey) |
| 269 | 272 | { |
| 270 | 273 | Model::getCodeGenerator($modelClass)->generate($table, $force); |
@@ -289,6 +292,9 @@ discard block |
||
| 289 | 292 | ); |
| 290 | 293 | } |
| 291 | 294 | |
| 295 | + /** |
|
| 296 | + * @param string $modelFilePath |
|
| 297 | + */ |
|
| 292 | 298 | private function deleteModel($modelFilePath, $tableName, $schemeTables, $dataSourceKey) |
| 293 | 299 | { |
| 294 | 300 | if (file_exists($modelFilePath)) { |
@@ -74,6 +74,9 @@ |
||
| 74 | 74 | exit; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + /** |
|
| 78 | + * @param string $name |
|
| 79 | + */ |
|
| 77 | 80 | private function fetchFiles($files, &$data, $name, $input) |
| 78 | 81 | { |
| 79 | 82 | if (isset($files['tmp_name'])) { |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | * Initialize added action (push to full action call stack) |
| 57 | 57 | * |
| 58 | 58 | * @param string $actionClass |
| 59 | - * @param $hash |
|
| 59 | + * @param integer $hash |
|
| 60 | 60 | * @return Action_Context |
| 61 | 61 | * @throws Exception |
| 62 | 62 | * |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * Get instance from container |
| 42 | 42 | * |
| 43 | 43 | * @param string $key |
| 44 | - * @param null $ttl |
|
| 44 | + * @param null|integer $ttl |
|
| 45 | 45 | * @param array $params |
| 46 | 46 | * @return null|object|string |
| 47 | 47 | * @throws Exception |
@@ -276,7 +276,7 @@ |
||
| 276 | 276 | * Execute query |
| 277 | 277 | * |
| 278 | 278 | * @param Query $query |
| 279 | - * @param $ttl |
|
| 279 | + * @param integer|null $ttl |
|
| 280 | 280 | * @return QueryResult |
| 281 | 281 | * @throws \Exception |
| 282 | 282 | * @author dp <[email protected]> |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | /** |
| 39 | 39 | * Private constructor for model collection |
| 40 | 40 | * |
| 41 | - * @param $modelClass |
|
| 41 | + * @param Model $modelClass |
|
| 42 | 42 | * @param array $rows |
| 43 | 43 | * |
| 44 | 44 | * @author dp <[email protected]> |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * Check table belongs to module |
| 79 | 79 | * |
| 80 | 80 | * @param $tableName |
| 81 | - * @param $dataSourceKey |
|
| 81 | + * @param string $dataSourceKey |
|
| 82 | 82 | * @return bool |
| 83 | 83 | * @author dp <[email protected]> |
| 84 | 84 | * |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | /** |
| 232 | 232 | * Load module configs |
| 233 | 233 | * |
| 234 | - * @param $vendor |
|
| 234 | + * @param string $vendor |
|
| 235 | 235 | * @param string $context |
| 236 | 236 | * @param array $modules |
| 237 | 237 | * |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | namespace Ice\Core; |
| 11 | 11 | |
| 12 | 12 | use Ice\Core; |
| 13 | -use Ice\Exception\ModuleNotFound; |
|
| 14 | 13 | use Ice\Helper\Directory; |
| 15 | 14 | use Ice\Helper\File; |
| 16 | 15 | use Ice\Helper\String; |
@@ -546,6 +546,9 @@ |
||
| 546 | 546 | return $string; |
| 547 | 547 | } |
| 548 | 548 | |
| 549 | + /** |
|
| 550 | + * @return integer |
|
| 551 | + */ |
|
| 549 | 552 | public function getFoundRows() |
| 550 | 553 | { |
| 551 | 554 | return $this->result[QueryResult::FOUND_ROWS]; |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * @param null $key |
| 45 | - * @param null $ttl |
|
| 45 | + * @param integer|null $ttl |
|
| 46 | 46 | * @param array $params |
| 47 | 47 | * @return Render |
| 48 | 48 | * |