@@ -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 | |
@@ -36,9 +36,9 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | class Ticket2481Product |
| 38 | 38 | { |
| 39 | - /** |
|
| 40 | - * @Id @Column(type="integer") |
|
| 41 | - * @GeneratedValue(strategy="AUTO") |
|
| 42 | - */ |
|
| 43 | - public $id; |
|
| 39 | + /** |
|
| 40 | + * @Id @Column(type="integer") |
|
| 41 | + * @GeneratedValue(strategy="AUTO") |
|
| 42 | + */ |
|
| 43 | + public $id; |
|
| 44 | 44 | } |
@@ -44,10 +44,10 @@ discard block |
||
| 44 | 44 | private function createQuery() |
| 45 | 45 | { |
| 46 | 46 | return $this->_em->createQueryBuilder() |
| 47 | - ->select('car') |
|
| 48 | - ->from(GH2947Car::class, 'car') |
|
| 49 | - ->getQuery() |
|
| 50 | - ->useResultCache(true, 3600, 'foo-cache-id'); |
|
| 47 | + ->select('car') |
|
| 48 | + ->from(GH2947Car::class, 'car') |
|
| 49 | + ->getQuery() |
|
| 50 | + ->useResultCache(true, 3600, 'foo-cache-id'); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | private function createData() |
@@ -60,13 +60,13 @@ discard block |
||
| 60 | 60 | private function updateData() |
| 61 | 61 | { |
| 62 | 62 | $this->_em->createQueryBuilder() |
| 63 | - ->update(GH2947Car::class, 'car') |
|
| 64 | - ->set('car.brand', ':newBrand') |
|
| 65 | - ->where('car.brand = :oldBrand') |
|
| 66 | - ->setParameter('newBrand', 'Dacia') |
|
| 67 | - ->setParameter('oldBrand', 'BMW') |
|
| 68 | - ->getQuery() |
|
| 69 | - ->execute(); |
|
| 63 | + ->update(GH2947Car::class, 'car') |
|
| 64 | + ->set('car.brand', ':newBrand') |
|
| 65 | + ->where('car.brand = :oldBrand') |
|
| 66 | + ->setParameter('newBrand', 'Dacia') |
|
| 67 | + ->setParameter('oldBrand', 'BMW') |
|
| 68 | + ->getQuery() |
|
| 69 | + ->execute(); |
|
| 70 | 70 | } |
| 71 | 71 | } |
| 72 | 72 | |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | public function testIssue() |
| 21 | 21 | { |
| 22 | - $dql = 'SELECT e FROM ' . __NAMESPACE__ . '\DDC2224Entity e WHERE e.field = :field'; |
|
| 22 | + $dql = 'SELECT e FROM '.__NAMESPACE__.'\DDC2224Entity e WHERE e.field = :field'; |
|
| 23 | 23 | $query = $this->_em->createQuery($dql); |
| 24 | 24 | $query->setQueryCacheDriver(new ArrayCache()); |
| 25 | 25 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | $dql = $q->getDQL(); |
| 22 | 22 | |
| 23 | 23 | // Show difference between expected and actual queries on error |
| 24 | - self::assertEquals("SELECT _a FROM " . __NAMESPACE__ . "\DDC1757A _a, " . __NAMESPACE__ . "\DDC1757B _b INNER JOIN _b.c _c INNER JOIN _c.d _d", |
|
| 24 | + self::assertEquals("SELECT _a FROM ".__NAMESPACE__."\DDC1757A _a, ".__NAMESPACE__."\DDC1757B _b INNER JOIN _b.c _c INNER JOIN _c.d _d", |
|
| 25 | 25 | $dql, |
| 26 | 26 | "Wrong DQL query"); |
| 27 | 27 | } |
@@ -226,11 +226,11 @@ discard block |
||
| 226 | 226 | class DDC1430OrderProduct |
| 227 | 227 | { |
| 228 | 228 | |
| 229 | - /** |
|
| 230 | - * @Id |
|
| 231 | - * @Column(type="integer") |
|
| 232 | - * @GeneratedValue() |
|
| 233 | - */ |
|
| 229 | + /** |
|
| 230 | + * @Id |
|
| 231 | + * @Column(type="integer") |
|
| 232 | + * @GeneratedValue() |
|
| 233 | + */ |
|
| 234 | 234 | protected $id; |
| 235 | 235 | |
| 236 | 236 | /** |
@@ -254,9 +254,9 @@ discard block |
||
| 254 | 254 | $this->value = $value; |
| 255 | 255 | } |
| 256 | 256 | |
| 257 | - /** |
|
| 258 | - * @return int |
|
| 259 | - */ |
|
| 257 | + /** |
|
| 258 | + * @return int |
|
| 259 | + */ |
|
| 260 | 260 | public function getId() |
| 261 | 261 | { |
| 262 | 262 | return $this->id; |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | $this->_em->getClassMetadata(DDC353Picture::class), |
| 17 | 17 | ] |
| 18 | 18 | ); |
| 19 | - } catch(\Exception $ignored) {} |
|
| 19 | + } catch (\Exception $ignored) {} |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | public function testWorkingCase() |