@@ -129,7 +129,7 @@ |
||
129 | 129 | * |
130 | 130 | * @var int |
131 | 131 | */ |
132 | - public $sqlite_flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE; |
|
132 | + public $sqlite_flags = SQLITE3_OPEN_READWRITE|SQLITE3_OPEN_CREATE; |
|
133 | 133 | |
134 | 134 | /** |
135 | 135 | * An optional encryption key used when encrypting and decrypting an SQLite database. |
@@ -43,7 +43,7 @@ |
||
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]; |
@@ -263,7 +263,7 @@ |
||
263 | 263 | * |
264 | 264 | * @return void |
265 | 265 | */ |
266 | - protected function insertPreparedRow(mysqli_stmt &$stmt, ReflectionMethod &$reflectionMethod, array &$row){ |
|
266 | + protected function insertPreparedRow(mysqli_stmt&$stmt, ReflectionMethod&$reflectionMethod, array &$row){ |
|
267 | 267 | $reflectionMethod->invokeArgs($stmt, $this->getReferences($row)); |
268 | 268 | $stmt->execute(); |
269 | 269 | } |
@@ -163,7 +163,7 @@ |
||
163 | 163 | * |
164 | 164 | * @return void |
165 | 165 | */ |
166 | - protected function bindParams(PDOStatement &$stmt, array $values){ |
|
166 | + protected function bindParams(PDOStatement&$stmt, array $values){ |
|
167 | 167 | $param_no = 1; |
168 | 168 | |
169 | 169 | foreach($values as $v){ |
@@ -14,21 +14,21 @@ |
||
14 | 14 | |
15 | 15 | trait Magic{ |
16 | 16 | |
17 | - public function __get(string $name) { |
|
17 | + public function __get(string $name){ |
|
18 | 18 | return $this->get($name); |
19 | 19 | } |
20 | 20 | |
21 | - public function __set(string $name, $value) { |
|
21 | + public function __set(string $name, $value){ |
|
22 | 22 | $this->set($name, $value); |
23 | 23 | } |
24 | 24 | |
25 | - private function get(string $name) { |
|
25 | + private function get(string $name){ |
|
26 | 26 | $method = 'magic_get_'.$name; |
27 | 27 | |
28 | 28 | return method_exists($this, $method) ? $this->$method() : null; |
29 | 29 | } |
30 | 30 | |
31 | - private function set(string $name, $value) { |
|
31 | + private function set(string $name, $value){ |
|
32 | 32 | $method = 'magic_set_'.$name; |
33 | 33 | |
34 | 34 | if(method_exists($this, $method)){ |
@@ -172,7 +172,7 @@ |
||
172 | 172 | * @expectedExceptionMessage sql error: |
173 | 173 | */ |
174 | 174 | public function testMultiCallbackSQLError(){ |
175 | - $this->DBDriver->multi_callback($this->SQL_RAW_ERROR, [[0]], function(){return [];}); |
|
175 | + $this->DBDriver->multi_callback($this->SQL_RAW_ERROR, [[0]], function(){return []; }); |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | public function testMultiCallback(){ |