@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | // we identify perf tests by class, method, and dataset |
34 | 34 | $class = str_replace('Doctrine\Tests\DBAL\Performance\\', '', get_class($test)); |
35 | 35 | |
36 | - if (!isset($this->timings[$class])) { |
|
36 | + if ( ! isset($this->timings[$class])) { |
|
37 | 37 | $this->timings[$class] = []; |
38 | 38 | } |
39 | 39 | |
@@ -50,13 +50,13 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function __destruct() |
52 | 52 | { |
53 | - if (!empty($this->timings)) { |
|
53 | + if ( ! empty($this->timings)) { |
|
54 | 54 | // Report timings. |
55 | 55 | print("\nPerformance test results:\n\n"); |
56 | 56 | |
57 | - foreach($this->timings as $class => $tests) { |
|
57 | + foreach ($this->timings as $class => $tests) { |
|
58 | 58 | printf("%s:\n", $class); |
59 | - foreach($tests as $test => $time) { |
|
59 | + foreach ($tests as $test => $time) { |
|
60 | 60 | printf("\t%s: %.3f seconds\n", $test, $time); |
61 | 61 | } |
62 | 62 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | public function testConversionFailure() |
46 | 46 | { |
47 | - error_reporting( (E_ALL | E_STRICT) - \E_NOTICE ); |
|
47 | + error_reporting((E_ALL | E_STRICT) - \E_NOTICE); |
|
48 | 48 | $this->expectException('Doctrine\DBAL\Types\ConversionException'); |
49 | 49 | $this->_type->convertToPHPValue('abcdefg', $this->_platform); |
50 | 50 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | protected function setUp() |
21 | 21 | { |
22 | 22 | $this->_platform = new MockPlatform(); |
23 | - if (!Type::hasType('vardatetime')) { |
|
23 | + if ( ! Type::hasType('vardatetime')) { |
|
24 | 24 | Type::addType('vardatetime', 'Doctrine\DBAL\Types\VarDateTimeType'); |
25 | 25 | } |
26 | 26 | $this->_type = Type::getType('vardatetime'); |
@@ -52,7 +52,7 @@ |
||
52 | 52 | |
53 | 53 | public function testConversionFailure() |
54 | 54 | { |
55 | - error_reporting( (E_ALL | E_STRICT) - \E_NOTICE ); |
|
55 | + error_reporting((E_ALL | E_STRICT) - \E_NOTICE); |
|
56 | 56 | $this->expectException('Doctrine\DBAL\Types\ConversionException'); |
57 | 57 | $this->_type->convertToPHPValue('abcdefg', $this->_platform); |
58 | 58 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | |
23 | 23 | protected function setUp() |
24 | 24 | { |
25 | - if (! Type::hasType('vardatetime_immutable')) { |
|
25 | + if ( ! Type::hasType('vardatetime_immutable')) { |
|
26 | 26 | Type::addType('vardatetime_immutable', VarDateTimeImmutableType::class); |
27 | 27 | } |
28 | 28 |
@@ -108,11 +108,11 @@ |
||
108 | 108 | */ |
109 | 109 | private function skipWhenNotUsingPhp56AndPdoPgsql() |
110 | 110 | { |
111 | - if (! defined('PDO::PGSQL_ATTR_DISABLE_PREPARES')) { |
|
111 | + if ( ! defined('PDO::PGSQL_ATTR_DISABLE_PREPARES')) { |
|
112 | 112 | $this->markTestSkipped('Test requires PHP 5.6+'); |
113 | 113 | } |
114 | 114 | |
115 | - if (! (isset($GLOBALS['db_type']) && $GLOBALS['db_type'] === 'pdo_pgsql')) { |
|
115 | + if ( ! (isset($GLOBALS['db_type']) && $GLOBALS['db_type'] === 'pdo_pgsql')) { |
|
116 | 116 | $this->markTestSkipped('Test enabled only when using pdo_pgsql specific phpunit.xml'); |
117 | 117 | } |
118 | 118 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | protected function setUp() |
13 | 13 | { |
14 | - if (!extension_loaded('oci8')) { |
|
14 | + if ( ! extension_loaded('oci8')) { |
|
15 | 15 | $this->markTestSkipped('oci8 is not installed.'); |
16 | 16 | } |
17 | 17 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | parent::setUp(); |
29 | 29 | |
30 | - if (! $this->_conn->getDatabasePlatform() instanceof MySqlPlatform) { |
|
30 | + if ( ! $this->_conn->getDatabasePlatform() instanceof MySqlPlatform) { |
|
31 | 31 | $this->markTestSkipped('MySQL only test.'); |
32 | 32 | } |
33 | 33 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | public function testRestoresErrorHandlerOnException() |
45 | 45 | { |
46 | - $handler = function () { self::fail('Never expected this to be called'); }; |
|
46 | + $handler = function() { self::fail('Never expected this to be called'); }; |
|
47 | 47 | $default_handler = set_error_handler($handler); |
48 | 48 | |
49 | 49 | try { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $this->_conn->exec($sql); |
33 | 33 | } |
34 | 34 | |
35 | - } catch(\Exception $e) { |
|
35 | + } catch (\Exception $e) { |
|
36 | 36 | } |
37 | 37 | $this->generator = new TableGenerator($this->_conn); |
38 | 38 | } |