@@ -176,8 +176,7 @@ discard block |
||
| 176 | 176 | { |
| 177 | 177 | $this->dsn = $this->hostname; |
| 178 | 178 | return; |
| 179 | - } |
|
| 180 | - elseif ($this->hostname !== '' && strpos($this->hostname, '/') === FALSE && strpos($this->hostname, ':') === FALSE |
|
| 179 | + } elseif ($this->hostname !== '' && strpos($this->hostname, '/') === FALSE && strpos($this->hostname, ':') === FALSE |
|
| 181 | 180 | && (( ! empty($this->port) && ctype_digit($this->port)) OR $this->database !== '')) |
| 182 | 181 | { |
| 183 | 182 | /* If the hostname field isn't empty, doesn't contain |
@@ -255,8 +254,7 @@ discard block |
||
| 255 | 254 | if ( ! $this->conn_id OR ($version_string = oci_server_version($this->conn_id)) === FALSE) |
| 256 | 255 | { |
| 257 | 256 | return FALSE; |
| 258 | - } |
|
| 259 | - elseif (preg_match('#Release\s(\d+(?:\.\d+)+)#', $version_string, $match)) |
|
| 257 | + } elseif (preg_match('#Release\s(\d+(?:\.\d+)+)#', $version_string, $match)) |
|
| 260 | 258 | { |
| 261 | 259 | return $this->data_cache['version'] = $match[1]; |
| 262 | 260 | } |
@@ -480,8 +478,7 @@ discard block |
||
| 480 | 478 | if (strpos($table, '.') !== FALSE) |
| 481 | 479 | { |
| 482 | 480 | sscanf($table, '%[^.].%s', $owner, $table); |
| 483 | - } |
|
| 484 | - else |
|
| 481 | + } else |
|
| 485 | 482 | { |
| 486 | 483 | $owner = $this->username; |
| 487 | 484 | } |
@@ -504,8 +501,7 @@ discard block |
||
| 504 | 501 | if (strpos($table, '.') !== FALSE) |
| 505 | 502 | { |
| 506 | 503 | sscanf($table, '%[^.].%s', $owner, $table); |
| 507 | - } |
|
| 508 | - else |
|
| 504 | + } else |
|
| 509 | 505 | { |
| 510 | 506 | $owner = $this->username; |
| 511 | 507 | } |
@@ -565,12 +561,10 @@ discard block |
||
| 565 | 561 | if (is_resource($this->curs_id)) |
| 566 | 562 | { |
| 567 | 563 | return oci_error($this->curs_id); |
| 568 | - } |
|
| 569 | - elseif (is_resource($this->stmt_id)) |
|
| 564 | + } elseif (is_resource($this->stmt_id)) |
|
| 570 | 565 | { |
| 571 | 566 | return oci_error($this->stmt_id); |
| 572 | - } |
|
| 573 | - elseif (is_resource($this->conn_id)) |
|
| 567 | + } elseif (is_resource($this->conn_id)) |
|
| 574 | 568 | { |
| 575 | 569 | return oci_error($this->conn_id); |
| 576 | 570 | } |
@@ -266,8 +266,7 @@ |
||
| 266 | 266 | if ($reduce_linebreaks === TRUE) |
| 267 | 267 | { |
| 268 | 268 | $table['#<p>\n*</p>#'] = ''; |
| 269 | - } |
|
| 270 | - else |
|
| 269 | + } else |
|
| 271 | 270 | { |
| 272 | 271 | // If we have empty paragraph tags we add a non-breaking space |
| 273 | 272 | // otherwise most browsers won't treat them as true paragraphs |