@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace BWC\Share\Composer; |
4 | 4 | |
5 | 5 | use Composer\Script\Event; |
6 | -use Symfony\Component\Filesystem\Filesystem; |
|
7 | 6 | use Symfony\Component\Finder\Finder; |
8 | 7 | |
9 | 8 | class Script |
@@ -84,7 +84,7 @@ |
||
84 | 84 | |
85 | 85 | /** |
86 | 86 | * @param string $name |
87 | - * @return bool |
|
87 | + * @return null|boolean |
|
88 | 88 | */ |
89 | 89 | public function delete($name) |
90 | 90 | { |
@@ -36,6 +36,9 @@ |
||
36 | 36 | abstract function _getTableName(); |
37 | 37 | |
38 | 38 | |
39 | + /** |
|
40 | + * @return string |
|
41 | + */ |
|
39 | 42 | abstract function _getClassName(); |
40 | 43 | |
41 | 44 |
@@ -9,6 +9,9 @@ |
||
9 | 9 | public $on; |
10 | 10 | public $alias; |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $type |
|
14 | + */ |
|
12 | 15 | function __construct($type, $table, $on, $alias = null) { |
13 | 16 | $this->type = $type; |
14 | 17 | $this->table = $table; |
@@ -33,6 +33,9 @@ discard block |
||
33 | 33 | private $_params = array(); |
34 | 34 | |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $alias |
|
38 | + */ |
|
36 | 39 | function __construct($tableName, Connection $connection, $select = null, $alias = null) { |
37 | 40 | $this->_tableName = $tableName; |
38 | 41 | $this->_con = $connection; |
@@ -95,7 +98,7 @@ discard block |
||
95 | 98 | |
96 | 99 | /** |
97 | 100 | * @param array|string $key |
98 | - * @param null|mixed $value |
|
101 | + * @param integer $value |
|
99 | 102 | * @param null|string $operator |
100 | 103 | * @return Select |
101 | 104 | */ |
@@ -152,8 +155,8 @@ discard block |
||
152 | 155 | } |
153 | 156 | |
154 | 157 | /** |
155 | - * @param $pageNum int |
|
156 | - * @param $pageSize int |
|
158 | + * @param integer $pageNum int |
|
159 | + * @param integer $pageSize int |
|
157 | 160 | * @return Select |
158 | 161 | */ |
159 | 162 | function paging($pageNum, $pageSize) { |
@@ -3,8 +3,8 @@ |
||
3 | 3 | namespace BWC\Share\Data\Sequence; |
4 | 4 | |
5 | 5 | use Doctrine\DBAL\Connection; |
6 | -use Doctrine\DBAL\Migrations\AbstractMigration, |
|
7 | - Doctrine\DBAL\Schema\Schema; |
|
6 | +use Doctrine\DBAL\Migrations\AbstractMigration; |
|
7 | +use Doctrine\DBAL\Schema\Schema; |
|
8 | 8 | |
9 | 9 | abstract class DoctrineMigration extends AbstractMigration |
10 | 10 | { |
@@ -9,6 +9,9 @@ |
||
9 | 9 | public $value; |
10 | 10 | public $operator; |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $operator |
|
14 | + */ |
|
12 | 15 | function __construct($key, $value, $operator = null) { |
13 | 16 | $this->key = $key; |
14 | 17 | $this->value = $value; |
@@ -144,11 +144,11 @@ |
||
144 | 144 | |
145 | 145 | |
146 | 146 | /** |
147 | - * @param $url |
|
148 | - * @param $method |
|
147 | + * @param string $url |
|
148 | + * @param string $method |
|
149 | 149 | * @param array $queryData |
150 | 150 | * @param array|string $postData |
151 | - * @param null $contentType |
|
151 | + * @param null|string $contentType |
|
152 | 152 | * @param array $arrHeaders |
153 | 153 | * @return string |
154 | 154 | */ |
@@ -110,11 +110,11 @@ |
||
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
113 | - * @param $url |
|
114 | - * @param $method |
|
113 | + * @param string $url |
|
114 | + * @param string $method |
|
115 | 115 | * @param array $queryData |
116 | 116 | * @param array|string $postData |
117 | - * @param null $contentType |
|
117 | + * @param null|string $contentType |
|
118 | 118 | * @param array $arrHeaders |
119 | 119 | * @return string |
120 | 120 | */ |