@@ -58,7 +58,7 @@ |
||
58 | 58 | * @return int |
59 | 59 | */ |
60 | 60 | public function getId() { |
61 | - return (int)$this->id; |
|
61 | + return (int) $this->id; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * @param int $width |
38 | 38 | */ |
39 | 39 | public function setWidth($width) { |
40 | - $this->width = (int)$width; |
|
40 | + $this->width = (int) $width; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
@@ -51,6 +51,6 @@ discard block |
||
51 | 51 | * @param int $height |
52 | 52 | */ |
53 | 53 | public function setHeight($height) { |
54 | - $this->height = (int)$height; |
|
54 | + $this->height = (int) $height; |
|
55 | 55 | } |
56 | 56 | } |
57 | 57 | \ No newline at end of file |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | { |
90 | 90 | $realDbParams = self::getParamsForMainConnection(); |
91 | 91 | |
92 | - if (! self::$initialized) { |
|
92 | + if ( ! self::$initialized) { |
|
93 | 93 | $tmpDbParams = self::getParamsForTemporaryConnection(); |
94 | 94 | |
95 | 95 | $realConn = DriverManager::getConnection($realDbParams); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | // Connect to tmpdb in order to drop and create the real test db. |
98 | 98 | $tmpConn = DriverManager::getConnection($tmpDbParams); |
99 | 99 | |
100 | - $platform = $tmpConn->getDatabasePlatform(); |
|
100 | + $platform = $tmpConn->getDatabasePlatform(); |
|
101 | 101 | |
102 | 102 | if ($platform->supportsCreateDropDatabase()) { |
103 | 103 | $dbname = $realConn->getDatabase(); |
@@ -25,12 +25,12 @@ |
||
25 | 25 | |
26 | 26 | if ($this->maxRunningTime != 0 && $time > $this->maxRunningTime) { |
27 | 27 | $this->fail( |
28 | - sprintf( |
|
28 | + sprintf( |
|
29 | 29 | 'expected running time: <= %s but was: %s', |
30 | 30 | |
31 | 31 | $this->maxRunningTime, |
32 | 32 | $time |
33 | - ) |
|
33 | + ) |
|
34 | 34 | ); |
35 | 35 | } |
36 | 36 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform) |
32 | 32 | { |
33 | - return 'UPPER(' . $sqlExpr . ')'; |
|
33 | + return 'UPPER('.$sqlExpr.')'; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -38,6 +38,6 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function convertToPHPValueSQL($sqlExpr, $platform) |
40 | 40 | { |
41 | - return 'LOWER(' . $sqlExpr . ')'; |
|
41 | + return 'LOWER('.$sqlExpr.')'; |
|
42 | 42 | } |
43 | 43 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | |
8 | 8 | class CustomIdObjectType extends Type |
9 | 9 | { |
10 | - const NAME = 'CustomIdObject'; |
|
10 | + const NAME = 'CustomIdObject'; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * {@inheritdoc} |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform) |
40 | 40 | { |
41 | - return 'ABS(' . $sqlExpr . ')'; |
|
41 | + return 'ABS('.$sqlExpr.')'; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -46,6 +46,6 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function convertToPHPValueSQL($sqlExpr, $platform) |
48 | 48 | { |
49 | - return '-(' . $sqlExpr . ')'; |
|
49 | + return '-('.$sqlExpr.')'; |
|
50 | 50 | } |
51 | 51 | } |
@@ -102,7 +102,7 @@ |
||
102 | 102 | /** |
103 | 103 | * @Id @Column(name="id", type="integer") |
104 | 104 | * @GeneratedValue(strategy="AUTO") |
105 | - */ |
|
105 | + */ |
|
106 | 106 | public $id; |
107 | 107 | } |
108 | 108 |
@@ -45,13 +45,13 @@ |
||
45 | 45 | |
46 | 46 | for ($i = 0; $i < 42; ++$i) { |
47 | 47 | if ($i % 10 == 0) { |
48 | - $this->connection->setQueryResult(new StatementArrayMock([[(int)($i / 10) * 10]])); |
|
48 | + $this->connection->setQueryResult(new StatementArrayMock([[(int) ($i / 10) * 10]])); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | $id = $this->sequenceGenerator->generate($this->entityManager, null); |
52 | 52 | |
53 | 53 | self::assertSame($i, $id); |
54 | - self::assertSame((int)($i / 10) * 10 + 10, $this->sequenceGenerator->getCurrentMaxValue()); |
|
54 | + self::assertSame((int) ($i / 10) * 10 + 10, $this->sequenceGenerator->getCurrentMaxValue()); |
|
55 | 55 | self::assertSame($i + 1, $this->sequenceGenerator->getNextValue()); |
56 | 56 | } |
57 | 57 | } |