@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | { |
119 | 119 | if (is_string($param_values[$i])) |
120 | 120 | $bind_types .= 's'; |
121 | - else if(is_float($param_values[$i])) |
|
121 | + else if (is_float($param_values[$i])) |
|
122 | 122 | $bind_types .= 'd'; |
123 | 123 | # [POSSIBLE BUG] - To Future revision (What about non-string and non-decimal types ?) |
124 | 124 | else |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | $this->rowsAffected = $this->dbconn->affected_rows; |
175 | 175 | |
176 | 176 | if ($this->transac_mode) |
177 | - $this->transac_result = is_null($this->transac_result) ? $this->result: $this->transac_result && $this->result; |
|
177 | + $this->transac_result = is_null($this->transac_result) ? $this->result : $this->transac_result && $this->result; |
|
178 | 178 | |
179 | 179 | /* |
180 | 180 | * Because mysqli_query() returns FALSE on failure, a mysqli_result object for SELECT, SHOW, DESCRIBE or EXPLAIN queries, * and TRUE for other successful queries, it should be handled to return only objects or resources. |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | public function testCannotStablishConnection() |
145 | 145 | { |
146 | 146 | $options = $this->options; |
147 | - $options["dbhost"] = 'myserver'; // this server does not exists |
|
147 | + $options["dbhost"] = 'myserver'; // this server does not exists |
|
148 | 148 | |
149 | 149 | $conn = new MySQL($options); |
150 | 150 | |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | $this->assertEquals(2, $conn->getNumFields()); |
241 | 241 | $this->assertEquals(0, $conn->getRowsAffected()); |
242 | 242 | |
243 | - $rowset = $conn->getArrayResult(); # array with results |
|
243 | + $rowset = $conn->getArrayResult(); # array with results |
|
244 | 244 | $row = array_shift($rowset); |
245 | 245 | |
246 | 246 | $this->assertArrayHasKey("ID", $row); |