1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 15:45:34 +02:00

[ticket/10678] Typo and formatting

PHPBB3-10678
This commit is contained in:
Patrick Webster 2012-05-13 16:56:07 -05:00
parent 1496a4198a
commit 29b36b214a
2 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@ class phpbb_database_connection_odbc_pdo_wrapper extends PDO
function __construct($dbms, $version, $dsn, $user, $pass) function __construct($dbms, $version, $dsn, $user, $pass)
{ {
$this->driver = $dbms; $this->driver = $dbms;
$this->version = (double)$version; $this->version = (double) $version;
parent::__construct($dsn, $user, $pass); parent::__construct($dsn, $user, $pass);
} }

View File

@ -39,11 +39,11 @@ abstract class phpbb_database_test_case extends PHPUnit_Extensions_Database_Test
$xml_data = preg_replace_callback('/(?:(<table name="))([a-z_]+)(?:(">))/', 'phpbb_database_test_case::to_upper', $xml_data); $xml_data = preg_replace_callback('/(?:(<table name="))([a-z_]+)(?:(">))/', 'phpbb_database_test_case::to_upper', $xml_data);
$xml_data = preg_replace_callback('/(?:(<column>))([a-z_]+)(?:(<\/column>))/', 'phpbb_database_test_case::to_upper', $xml_data); $xml_data = preg_replace_callback('/(?:(<column>))([a-z_]+)(?:(<\/column>))/', 'phpbb_database_test_case::to_upper', $xml_data);
$temp = tmpfile(); $new_fixture = tmpfile();
fwrite($temp, $xml_data); fwrite($new_fixture, $xml_data);
fseek($temp, 0); fseek($new_fixture, 0);
$meta_data = stream_get_meta_data($temp); $meta_data = stream_get_meta_data($new_fixture);
$path = $meta_data['uri']; $path = $meta_data['uri'];
} }
@ -131,7 +131,7 @@ abstract class phpbb_database_test_case extends PHPUnit_Extensions_Database_Test
/** /**
* Converts a match in the middle of a string to uppercase. * Converts a match in the middle of a string to uppercase.
* This is necessary for tranforming the fixture information for Firebird tests * This is necessary for transforming the fixture information for Firebird tests
* *
* @param $matches The array of matches from a regular expression * @param $matches The array of matches from a regular expression
* *