Completed
Push — master ( f08c1d...ffbb02 )
by smiley
02:22
created
src/DBResult.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 	 ***************/
89 89
 
90 90
 	/**
91
-	 * @param int|string $offset
91
+	 * @param integer $offset
92 92
 	 *
93 93
 	 * @return bool
94 94
 	 */
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	}
98 98
 
99 99
 	/**
100
-	 * @param int|string $offset
100
+	 * @param integer $offset
101 101
 	 *
102 102
 	 * @return \chillerlan\Database\DBResultRow|mixed|null
103 103
 	 */
Please login to merge, or discard this patch.
src/Drivers/PDO/PDODriverAbstract.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@
 block discarded – undo
199 199
 	}
200 200
 
201 201
 	/**
202
-	 * @param             $stmt
202
+	 * @param             PDOStatement $stmt
203 203
 	 * @param string|null $index
204 204
 	 * @param bool        $assoc
205 205
 	 *
Please login to merge, or discard this patch.
src/DBResultRow.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 	 *
44 44
 	 * @return mixed|null
45 45
 	 */
46
-	public function __get(string $name) {
46
+	public function __get(string $name){
47 47
 
48 48
 		if(isset($this->array[$name])){
49 49
 			return $this->array[$name];
Please login to merge, or discard this patch.
src/Drivers/DBDriverAbstract.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -45,6 +45,10 @@
 block discarded – undo
45 45
 	abstract protected function __raw(string $sql, string $index = null, bool $assoc = true);
46 46
 	abstract protected function __prepared(string $sql, array $values = [], string $index = null, bool $assoc = true);
47 47
 	abstract protected function __multi(string $sql, array $values);
48
+
49
+	/**
50
+	 * @param callable $callback
51
+	 */
48 52
 	abstract protected function __multi_callback(string $sql, array $data, $callback);
49 53
 
50 54
 	/**
Please login to merge, or discard this patch.
src/Traits/Magic.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,21 +18,21 @@
 block discarded – undo
18 18
  */
19 19
 trait Magic{
20 20
 
21
-	public function __get(string $name) {
21
+	public function __get(string $name){
22 22
 		return $this->get($name);
23 23
 	}
24 24
 
25
-	public function __set(string $name, $value) {
25
+	public function __set(string $name, $value){
26 26
 		$this->set($name, $value);
27 27
 	}
28 28
 
29
-	private function get(string $name) {
29
+	private function get(string $name){
30 30
 		$method = 'magic_get_'.$name;
31 31
 
32 32
 		return method_exists($this, $method) ? $this->$method() : null;
33 33
 	}
34 34
 
35
-	private function set(string $name, $value) {
35
+	private function set(string $name, $value){
36 36
 		$method = 'magic_set_'.$name;
37 37
 
38 38
 		if(method_exists($this, $method)){
Please login to merge, or discard this patch.
src/Query/InsertInterface.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -16,7 +16,14 @@
 block discarded – undo
16 16
  */
17 17
 interface InsertInterface extends StatementInterface{
18 18
 
19
+	/**
20
+	 * @return void
21
+	 */
19 22
 	public function into();
23
+
24
+	/**
25
+	 * @return void
26
+	 */
20 27
 	public function values();
21 28
 
22 29
 }
Please login to merge, or discard this patch.
src/Query/CreateTableInterface.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -20,6 +20,10 @@  discard block
 block discarded – undo
20 20
 	public function ifNotExists():CreateTableInterface;
21 21
 	public function name(string $tablename = null):CreateTableInterface;
22 22
 	public function primaryKey(string $field):CreateTableInterface;
23
+
24
+	/**
25
+	 * @param string $defaultValue
26
+	 */
23 27
 	public function field(
24 28
 		string $name,
25 29
 		string $type,
@@ -31,5 +35,9 @@  discard block
 block discarded – undo
31 35
 		$defaultValue = null,
32 36
 		string $extra = null
33 37
 	):CreateTableInterface;
38
+
39
+	/**
40
+	 * @return void
41
+	 */
34 42
 	public function index($name);
35 43
 }
Please login to merge, or discard this patch.
src/Query/DeleteInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@
 block discarded – undo
16 16
  */
17 17
 interface DeleteInterface extends StatementInterface{
18 18
 
19
+	/**
20
+	 * @return void
21
+	 */
19 22
 	public function from();
20 23
 	public function where($val1, $val2, $operator = '=', $bind = true, $join = 'AND'):DeleteInterface;
21 24
 
Please login to merge, or discard this patch.
src/Query/StatementInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -18,6 +18,10 @@
 block discarded – undo
18 18
 
19 19
 	public function sql():string;
20 20
 	public function bindValues():array;
21
+
22
+	/**
23
+	 * @return void
24
+	 */
21 25
 	public function execute();
22 26
 	public function quote(string $str):string;
23 27
 
Please login to merge, or discard this patch.