@@ -122,6 +122,9 @@ |
||
| 122 | 122 | include getenv('COMPOSER_HOME') . '/vendor/autoload.php'; |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | + /** |
|
| 126 | + * @param string $packageName |
|
| 127 | + */ |
|
| 125 | 128 | public static function requirePackage($packageName, $version = '', $path = '', $needOutput = false) { |
| 126 | 129 | if (!$path) { |
| 127 | 130 | $path = getenv('COMPOSER_HOME'); |
@@ -201,7 +201,6 @@ discard block |
||
| 201 | 201 | * @param Model $item |
| 202 | 202 | * @param string $colName |
| 203 | 203 | * @param boolean $manageHref |
| 204 | - * @param array $params |
|
| 205 | 204 | * @return string |
| 206 | 205 | */ |
| 207 | 206 | public static function resloveTypeValue($item, $colName, $manageHref = false, $colInfo = []) { |
@@ -845,7 +844,7 @@ discard block |
||
| 845 | 844 | /** |
| 846 | 845 | * return relations list |
| 847 | 846 | * |
| 848 | - * @return array |
|
| 847 | + * @return string |
|
| 849 | 848 | */ |
| 850 | 849 | public static function relations() { |
| 851 | 850 | return []; |
@@ -1248,7 +1247,7 @@ discard block |
||
| 1248 | 1247 | /** |
| 1249 | 1248 | * Return primary key of object |
| 1250 | 1249 | * |
| 1251 | - * @return mixed |
|
| 1250 | + * @return boolean |
|
| 1252 | 1251 | */ |
| 1253 | 1252 | public function pk() { |
| 1254 | 1253 | return $this->{$this->index()}; |
@@ -1767,7 +1766,7 @@ discard block |
||
| 1767 | 1766 | * Return model value in object |
| 1768 | 1767 | * |
| 1769 | 1768 | * @param string $name |
| 1770 | - * @return \Value|null |
|
| 1769 | + * @return Value|null |
|
| 1771 | 1770 | */ |
| 1772 | 1771 | public function value($name) { |
| 1773 | 1772 | $fixedName = $name; |
@@ -91,6 +91,9 @@ |
||
| 91 | 91 | return $result->fetchAll(empty($options['array']) ? $this->modelName : '', $this->modelName::index()); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | + /** |
|
| 95 | + * @return boolean |
|
| 96 | + */ |
|
| 94 | 97 | public function insert($values) { |
| 95 | 98 | $query = $this->createQuery(); |
| 96 | 99 | return $query->insert('', $values); |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | /** |
| 16 | 16 | * @param string $folder |
| 17 | 17 | * @param string $prefix |
| 18 | - * @param int|float $priority |
|
| 18 | + * @param integer $priority |
|
| 19 | 19 | * @param int|bool $moduleIndex |
| 20 | 20 | * @param array $moduleDirs |
| 21 | 21 | */ |
@@ -83,7 +83,6 @@ discard block |
||
| 83 | 83 | /** |
| 84 | 84 | * Include class by name |
| 85 | 85 | * |
| 86 | - * @param string $className |
|
| 87 | 86 | * @return boolean |
| 88 | 87 | */ |
| 89 | 88 | public static function loadClass($classPath) { |
@@ -20,6 +20,9 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public $query; |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param Query $query |
|
| 25 | + */ |
|
| 23 | 26 | public function __construct($dbResult, $query) { |
| 24 | 27 | $this->result = $dbResult; |
| 25 | 28 | $this->query = $query; |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | public $dbOptions = []; |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * @param $instance |
|
| 36 | + * @param $instance |
|
| 37 | 37 | */ |
| 38 | 38 | public function __construct($instance = null) { |
| 39 | 39 | if (!$instance) { |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use Inji\Config; |
|
| 3 | +use Inji\Config; |
|
| 4 | 4 | |
| 5 | 5 | class ConfigTest extends \PHPUnit\Framework\TestCase { |
| 6 | 6 | |