@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | */ |
211 | 211 | public function addType(Type $type) |
212 | 212 | { |
213 | - if (! $this->types->contains($type)) { |
|
213 | + if ( ! $this->types->contains($type)) { |
|
214 | 214 | $this->types[] = $type; |
215 | 215 | $type->addLemma($this); |
216 | 216 | } |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | */ |
331 | 331 | public function addLemma(Lemma $lemma) |
332 | 332 | { |
333 | - if (! $this->lemmas->contains($lemma)) { |
|
333 | + if ( ! $this->lemmas->contains($lemma)) { |
|
334 | 334 | $this->lemmas[] = $lemma; |
335 | 335 | $lemma->addType($this); |
336 | 336 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | |
49 | 49 | public function assertCollectionEquals(Collection $first, Collection $second) |
50 | 50 | { |
51 | - return $first->forAll(function ($k, $e) use ($second) { |
|
51 | + return $first->forAll(function($k, $e) use ($second) { |
|
52 | 52 | return $second->contains($e); |
53 | 53 | }); |
54 | 54 | } |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | parent::setUp(); |
21 | 21 | |
22 | 22 | if ($this->em->getConnection()->getDatabasePlatform()->getName() !== 'postgresql') { |
23 | - $this->markTestSkipped('The ' . __CLASS__ . ' requires the use of postgresql.'); |
|
23 | + $this->markTestSkipped('The '.__CLASS__.' requires the use of postgresql.'); |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 | |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $tool->createSchema($classes); |
132 | 132 | |
133 | 133 | $sql = $tool->getUpdateSchemaSql($classes); |
134 | - $sql = array_filter($sql, function ($sql) { |
|
134 | + $sql = array_filter($sql, function($sql) { |
|
135 | 135 | return strpos($sql, 'DROP SEQUENCE stonewood.') === 0; |
136 | 136 | }); |
137 | 137 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | parent::setUp(); |
17 | 17 | if ($this->em->getConnection()->getDatabasePlatform()->getName() !== 'mysql') { |
18 | - $this->markTestSkipped('The ' . __CLASS__ . ' requires the use of mysql.'); |
|
18 | + $this->markTestSkipped('The '.__CLASS__.' requires the use of mysql.'); |
|
19 | 19 | } |
20 | 20 | } |
21 | 21 |
@@ -55,7 +55,7 @@ |
||
55 | 55 | */ |
56 | 56 | public function testDropPartSchemaWithForeignKeys() : void |
57 | 57 | { |
58 | - if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
58 | + if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
59 | 59 | $this->markTestSkipped('Foreign Key test'); |
60 | 60 | } |
61 | 61 |
@@ -88,10 +88,10 @@ |
||
88 | 88 | $schemaDiff = $comparator->compare($fromSchema, $toSchema); |
89 | 89 | |
90 | 90 | $sql = $schemaDiff->toSql($this->em->getConnection()->getDatabasePlatform()); |
91 | - $sql = array_filter($sql, function ($sql) { |
|
91 | + $sql = array_filter($sql, function($sql) { |
|
92 | 92 | return strpos($sql, 'DROP') === false; |
93 | 93 | }); |
94 | 94 | |
95 | - self::assertCount(0, $sql, 'SQL: ' . implode(PHP_EOL, $sql)); |
|
95 | + self::assertCount(0, $sql, 'SQL: '.implode(PHP_EOL, $sql)); |
|
96 | 96 | } |
97 | 97 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | private function registerType(string $className) |
40 | 40 | { |
41 | - $type = constant($className . '::NAME'); |
|
41 | + $type = constant($className.'::NAME'); |
|
42 | 42 | |
43 | 43 | if (DBALType::hasType($type)) { |
44 | 44 | DBALType::overrideType($type, $className); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | foreach ($classes as $class) { |
75 | 75 | $ce = $validator->validateClass($class); |
76 | 76 | |
77 | - self::assertEmpty($ce, 'Invalid Modelset: ' . $modelSet . ' class ' . $class->getClassName() . ': ' . implode("\n", $ce)); |
|
77 | + self::assertEmpty($ce, 'Invalid Modelset: '.$modelSet.' class '.$class->getClassName().': '.implode("\n", $ce)); |
|
78 | 78 | } |
79 | 79 | } |
80 | 80 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | parent::setUp(); |
18 | 18 | |
19 | - if (! $this->em->getConnection()->getDatabasePlatform()->supportsSequences()) { |
|
19 | + if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsSequences()) { |
|
20 | 20 | $this->markTestSkipped('Only working for Databases that support sequences.'); |
21 | 21 | } |
22 | 22 |
@@ -16,16 +16,16 @@ |
||
16 | 16 | public function providerParameterTypeInferer() |
17 | 17 | { |
18 | 18 | $data = [ |
19 | - [1, Type::INTEGER], |
|
20 | - ['bar', ParameterType::STRING], |
|
21 | - ['1', ParameterType::STRING], |
|
22 | - [new \DateTime(), Type::DATETIME], |
|
19 | + [1, Type::INTEGER], |
|
20 | + ['bar', ParameterType::STRING], |
|
21 | + ['1', ParameterType::STRING], |
|
22 | + [new \DateTime(), Type::DATETIME], |
|
23 | 23 | [new \DateInterval('P1D'), Type::DATEINTERVAL], |
24 | - [[2], Connection::PARAM_INT_ARRAY], |
|
25 | - [['foo'], Connection::PARAM_STR_ARRAY], |
|
26 | - [['1','2'], Connection::PARAM_STR_ARRAY], |
|
27 | - [[], Connection::PARAM_STR_ARRAY], |
|
28 | - [true, Type::BOOLEAN], |
|
24 | + [[2], Connection::PARAM_INT_ARRAY], |
|
25 | + [['foo'], Connection::PARAM_STR_ARRAY], |
|
26 | + [['1', '2'], Connection::PARAM_STR_ARRAY], |
|
27 | + [[], Connection::PARAM_STR_ARRAY], |
|
28 | + [true, Type::BOOLEAN], |
|
29 | 29 | ]; |
30 | 30 | |
31 | 31 | if (PHP_VERSION_ID >= 50500) { |