@@ -13,7 +13,7 @@ |
||
| 13 | 13 | parent::setUp(); |
| 14 | 14 | |
| 15 | 15 | if ($this->_em->getConnection()->getDatabasePlatform()->getName() !== 'postgresql') { |
| 16 | - $this->markTestSkipped('The ' . __CLASS__ .' requires the use of postgresql.'); |
|
| 16 | + $this->markTestSkipped('The '.__CLASS__.' requires the use of postgresql.'); |
|
| 17 | 17 | } |
| 18 | 18 | } |
| 19 | 19 | |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | protected function setUp() { |
| 12 | 12 | parent::setUp(); |
| 13 | 13 | if ($this->_em->getConnection()->getDatabasePlatform()->getName() !== 'mysql') { |
| 14 | - $this->markTestSkipped('The ' . __CLASS__ .' requires the use of mysql.'); |
|
| 14 | + $this->markTestSkipped('The '.__CLASS__.' requires the use of mysql.'); |
|
| 15 | 15 | } |
| 16 | 16 | } |
| 17 | 17 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $this->_em->getClassMetadata(SequenceEntity::class), |
| 25 | 25 | ] |
| 26 | 26 | ); |
| 27 | - } catch(\Exception $e) { |
|
| 27 | + } catch (\Exception $e) { |
|
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | |
@@ -182,7 +182,7 @@ |
||
| 182 | 182 | { |
| 183 | 183 | $this->_createFixture(); |
| 184 | 184 | |
| 185 | - $product = $this->_em->find(ECommerceProduct::class, $this->product->getId()); |
|
| 185 | + $product = $this->_em->find(ECommerceProduct::class, $this->product->getId()); |
|
| 186 | 186 | |
| 187 | 187 | $thirdFeature = new ECommerceFeature(); |
| 188 | 188 | $thirdFeature->setDescription('Model writing tutorial'); |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | $this->_em->getClassMetadata(DDC1461User::class) |
| 19 | 19 | ] |
| 20 | 20 | ); |
| 21 | - } catch(\Exception $e) { |
|
| 21 | + } catch (\Exception $e) { |
|
| 22 | 22 | |
| 23 | 23 | } |
| 24 | 24 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | |
| 58 | 58 | $em->flush(); |
| 59 | 59 | |
| 60 | - $q = $this->_em->createQuery("SELECT COUNT(e) FROM " . __NAMESPACE__ . '\DDC1392File e'); |
|
| 60 | + $q = $this->_em->createQuery("SELECT COUNT(e) FROM ".__NAMESPACE__.'\DDC1392File e'); |
|
| 61 | 61 | $result = $q->getSingleScalarResult(); |
| 62 | 62 | |
| 63 | 63 | self::assertEquals(1, $result); |
@@ -26,9 +26,9 @@ |
||
| 26 | 26 | { |
| 27 | 27 | $qb = $this->_em->createQueryBuilder(); |
| 28 | 28 | $qb->from(DDC1225_TestEntity1::class, 'te1') |
| 29 | - ->select('te1') |
|
| 30 | - ->where('te1.testEntity2 = ?1') |
|
| 31 | - ->setParameter(1, 0); |
|
| 29 | + ->select('te1') |
|
| 30 | + ->where('te1.testEntity2 = ?1') |
|
| 31 | + ->setParameter(1, 0); |
|
| 32 | 32 | |
| 33 | 33 | $this->assertEquals( |
| 34 | 34 | strtolower('SELECT t0_.test_entity2_id AS test_entity2_id_0 FROM te1 t0_ WHERE t0_.test_entity2_id = ?'), |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $this->_em->getClassMetadata(DDC1225_TestEntity2::class), |
| 18 | 18 | ] |
| 19 | 19 | ); |
| 20 | - } catch(\PDOException $e) { |
|
| 20 | + } catch (\PDOException $e) { |
|
| 21 | 21 | |
| 22 | 22 | } |
| 23 | 23 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | |
| 46 | 46 | $related = $this |
| 47 | 47 | ->_em |
| 48 | - ->createQuery('SELECT b FROM '.__NAMESPACE__ . '\DDC2214Bar b WHERE b.id IN(:ids)') |
|
| 48 | + ->createQuery('SELECT b FROM '.__NAMESPACE__.'\DDC2214Bar b WHERE b.id IN(:ids)') |
|
| 49 | 49 | ->setParameter('ids', [$bar]) |
| 50 | 50 | ->getResult(); |
| 51 | 51 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $this->_em->getClassMetadata(DDC1209_3::class) |
| 18 | 18 | ] |
| 19 | 19 | ); |
| 20 | - } catch(\Exception $e) { |
|
| 20 | + } catch (\Exception $e) { |
|
| 21 | 21 | } |
| 22 | 22 | } |
| 23 | 23 | |