Completed
Push — master ( 2026a9...a4c909 )
by smiley
01:27
created
src/Drivers/DriverAbstract.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
 	/**
105 105
 	 * @param string   $sql
106 106
 	 * @param iterable $data
107
-	 * @param          $callback
107
+	 * @param          callable $callback
108 108
 	 *
109 109
 	 * @return bool
110 110
 	 */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
 				$sql,
176 176
 				$values !== null ? $values : [],
177 177
 				$index,
178
-				$assoc  !== null ? $assoc  : true
178
+				$assoc !== null ? $assoc : true
179 179
 			);
180 180
 		}
181 181
 		catch(\Exception $e){
Please login to merge, or discard this patch.
src/Drivers/PostgreSQL.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 	}
87 87
 
88 88
 	/**
89
-	 * @param             $result
89
+	 * @param             resource $result
90 90
 	 * @param string|null $index
91 91
 	 * @param bool        $assoc
92 92
 	 *
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 	}
75 75
 
76 76
 	/** @inheritdoc */
77
-	public function getServerInfo():?string{
77
+	public function getServerInfo(): ?string{
78 78
 		$ver = pg_version($this->db);
79 79
 
80 80
 		return 'PostgreSQL '.$ver['server'].' ('.$ver['server_encoding'].', date style: '.$ver['DateStyle'].', time zone: '.$ver['TimeZone'].')';
Please login to merge, or discard this patch.
src/Query/Statement.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -24,6 +24,7 @@
 block discarded – undo
24 24
 	 * @param \chillerlan\Database\Drivers\DriverInterface $db
25 25
 	 * @param \chillerlan\Database\Dialects\Dialect        $dialect
26 26
 	 * @param \Psr\Log\LoggerInterface|null                $logger
27
+	 * @return void
27 28
 	 */
28 29
 	public function __construct(DriverInterface $db, Dialect $dialect, LoggerInterface $logger = null);
29 30
 
Please login to merge, or discard this patch.
src/ResultInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -22,6 +22,7 @@
 block discarded – undo
22 22
 	 * @param iterable|null $data
23 23
 	 * @param string|null   $sourceEncoding
24 24
 	 * @param string        $destEncoding
25
+	 * @return void
25 26
 	 */
26 27
 	public function __construct(iterable $data = null, string $sourceEncoding = null, string $destEncoding = null);
27 28
 
Please login to merge, or discard this patch.
src/Query/QueryBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -550,8 +550,8 @@
 block discarded – undo
550 550
 								: $this->dialect->quote($k).' = '.$v; //$this->db->escape($v)
551 551
 						}
552 552
 						else{
553
-							$this->set[]        = $this->dialect->quote($k).' = ?';
554
-							$this->addBindValue($k, is_bool($v) ? (int)$v : $v);// avoid errors with PDO firebird & mysql
553
+							$this->set[] = $this->dialect->quote($k).' = ?';
554
+							$this->addBindValue($k, is_bool($v) ? (int)$v : $v); // avoid errors with PDO firebird & mysql
555 555
 						}
556 556
 					}
557 557
 				}
Please login to merge, or discard this patch.
src/Drivers/MSSqlSrv.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
 	}
169 169
 
170 170
 	/** @inheritdoc */
171
-	public function getServerInfo():?string{
171
+	public function getServerInfo(): ?string{
172 172
 
173 173
 		if(gettype($this->db) === 'resource'){
174 174
 			$info = sqlsrv_server_info($this->db);
Please login to merge, or discard this patch.
src/Drivers/MSSqlSrvPDO.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 		// @todo
41 41
 		$this->pdo_options[PDO::SQLSRV_ATTR_QUERY_TIMEOUT] = $options->mssql_timeout; // doesn't seem to have an effect
42 42
 		$this->pdo_options[PDO::SQLSRV_ATTR_FETCHES_NUMERIC_TYPE] = true;
43
-		$this->pdo_options[PDO::SQLSRV_ATTR_ENCODING ] = PDO::SQLSRV_ENCODING_UTF8;
43
+		$this->pdo_options[PDO::SQLSRV_ATTR_ENCODING] = PDO::SQLSRV_ENCODING_UTF8;
44 44
 
45 45
 		parent::__construct($options, $cache);
46 46
 	}
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		$dsn .= ':Server='.$this->options->host;
53 53
 
54 54
 		if(is_numeric($this->options->port)){
55
-			$dsn .=  ','.$this->options->port;
55
+			$dsn .= ','.$this->options->port;
56 56
 		}
57 57
 
58 58
 		$dsn .= ';Database='.$this->options->database;
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	}
73 73
 
74 74
 	/** @inheritdoc */
75
-	public function getServerInfo():?string{
75
+	public function getServerInfo(): ?string{
76 76
 		$info = $this->db->getAttribute(PDO::ATTR_SERVER_INFO);
77 77
 
78 78
 		if(is_array($info) && !empty($info)){
Please login to merge, or discard this patch.
src/Drivers/DriverInterface.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 	 *
70 70
 	 * @return string serverinfo string
71 71
 	 */
72
-	public function getServerInfo():?string;
72
+	public function getServerInfo(): ?string;
73 73
 
74 74
 	/**
75 75
 	 * Sanitizer.
Please login to merge, or discard this patch.
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
 	 * @param \chillerlan\Settings\SettingsContainerInterface $options
26 26
 	 * @param \Psr\SimpleCache\CacheInterface|null  $cache
27 27
 	 * @param \Psr\Log\LoggerInterface|null         $logger
28
+	 * @return void
28 29
 	 */
29 30
 	public function __construct(SettingsContainerInterface $options, CacheInterface $cache = null, LoggerInterface $logger = null);
30 31
 
Please login to merge, or discard this patch.
src/Drivers/PDODriverAbstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
 	}
122 122
 
123 123
 	/** @inheritdoc */
124
-	public function getServerInfo():?string{
124
+	public function getServerInfo(): ?string{
125 125
 		return $this->db->getAttribute(PDO::ATTR_SERVER_INFO);
126 126
 	}
127 127
 
Please login to merge, or discard this patch.