Failed Conditions
Pull Request — master (#7242)
by Gabriel
08:46
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2224Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     public function testIssue() : Query
26 26
     {
27
-        $dql   = 'SELECT e FROM ' . __NAMESPACE__ . '\DDC2224Entity e WHERE e.field = :field';
27
+        $dql   = 'SELECT e FROM '.__NAMESPACE__.'\DDC2224Entity e WHERE e.field = :field';
28 28
         $query = $this->em->createQuery($dql);
29 29
         $query->setQueryCacheDriver(new ArrayCache());
30 30
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1514Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $this->em->flush();
58 58
         $this->em->clear();
59 59
 
60
-        $dql     = 'SELECT a, b, ba, c FROM ' . __NAMESPACE__ . '\DDC1514EntityA AS a LEFT JOIN a.entitiesB AS b LEFT JOIN b.entityATo AS ba LEFT JOIN a.entityC AS c ORDER BY a.title';
60
+        $dql     = 'SELECT a, b, ba, c FROM '.__NAMESPACE__.'\DDC1514EntityA AS a LEFT JOIN a.entitiesB AS b LEFT JOIN b.entityATo AS ba LEFT JOIN a.entityC AS c ORDER BY a.title';
61 61
         $results = $this->em->createQuery($dql)->getResult();
62 62
 
63 63
         self::assertEquals($a1->id, $results[0]->id);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1452Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         $this->em->flush();
52 52
         $this->em->clear();
53 53
 
54
-        $dql     = 'SELECT a, b, ba FROM ' . __NAMESPACE__ . '\DDC1452EntityA AS a LEFT JOIN a.entitiesB AS b LEFT JOIN b.entityATo AS ba';
54
+        $dql     = 'SELECT a, b, ba FROM '.__NAMESPACE__.'\DDC1452EntityA AS a LEFT JOIN a.entitiesB AS b LEFT JOIN b.entityATo AS ba';
55 55
         $results = $this->em->createQuery($dql)->setMaxResults(1)->getResult();
56 56
 
57 57
         self::assertSame($results[0], $results[0]->entitiesB[0]->entityAFrom);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC513Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
     public function testIssue() : void
25 25
     {
26
-        $q = $this->em->createQuery('select u from ' . __NAMESPACE__ . '\\DDC513OfferItem u left join u.price p');
26
+        $q = $this->em->createQuery('select u from '.__NAMESPACE__.'\\DDC513OfferItem u left join u.price p');
27 27
 
28 28
         self::assertSQLEquals(
29 29
             'SELECT t0."id" AS c0, t0."discr" AS c1, t0."price" AS c2 FROM "DDC513OfferItem" t1 INNER JOIN "DDC513Item" t0 ON t1."id" = t0."id" LEFT JOIN "DDC513Price" t2 ON t0."price" = t2."id"',
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2084Test.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
         try {
19 19
             $this->schemaTool->createSchema(
20 20
                 [
21
-                $this->em->getClassMetadata(__NAMESPACE__ . '\DDC2084\MyEntity1'),
22
-                $this->em->getClassMetadata(__NAMESPACE__ . '\DDC2084\MyEntity2'),
21
+                $this->em->getClassMetadata(__NAMESPACE__.'\DDC2084\MyEntity1'),
22
+                $this->em->getClassMetadata(__NAMESPACE__.'\DDC2084\MyEntity2'),
23 23
                 ]
24 24
             );
25 25
         } catch (\Exception $exc) {
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $e1 = $this->loadFixture();
48 48
         $e2 = $e1->getMyEntity2();
49
-        $e  = $this->em->find(__NAMESPACE__ . '\DDC2084\MyEntity1', $e2);
49
+        $e  = $this->em->find(__NAMESPACE__.'\DDC2084\MyEntity1', $e2);
50 50
 
51
-        self::assertInstanceOf(__NAMESPACE__ . '\DDC2084\MyEntity1', $e);
52
-        self::assertInstanceOf(__NAMESPACE__ . '\DDC2084\MyEntity2', $e->getMyEntity2());
51
+        self::assertInstanceOf(__NAMESPACE__.'\DDC2084\MyEntity1', $e);
52
+        self::assertInstanceOf(__NAMESPACE__.'\DDC2084\MyEntity2', $e->getMyEntity2());
53 53
         self::assertEquals('Foo', $e->getMyEntity2()->getValue());
54 54
     }
55 55
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function testinvalidIdentifierBindingEntityException() : void
61 61
     {
62
-        $this->em->find(__NAMESPACE__ . '\DDC2084\MyEntity1', new DDC2084\MyEntity2('Foo'));
62
+        $this->em->find(__NAMESPACE__.'\DDC2084\MyEntity1', new DDC2084\MyEntity2('Foo'));
63 63
     }
64 64
 }
65 65
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC522Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $this->em->clear();
51 51
 
52 52
         $cart = $this->em
53
-            ->createQuery('select ca, c from ' . DDC522Cart::class . ' ca join ca.customer c')
53
+            ->createQuery('select ca, c from '.DDC522Cart::class.' ca join ca.customer c')
54 54
             ->getSingleResult()
55 55
         ;
56 56
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC881Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,14 +83,14 @@
 block discarded – undo
83 83
         $this->em->clear();
84 84
 
85 85
         // fetch-join that foreign-key/primary-key entity association
86
-        $dql   = 'SELECT c, p FROM ' . DDC881PhoneCall::class . ' c JOIN c.phonenumber p';
86
+        $dql   = 'SELECT c, p FROM '.DDC881PhoneCall::class.' c JOIN c.phonenumber p';
87 87
         $calls = $this->em->createQuery($dql)->getResult();
88 88
 
89 89
         self::assertCount(2, $calls);
90 90
         self::assertNotInstanceOf(GhostObjectInterface::class, $calls[0]->getPhoneNumber());
91 91
         self::assertNotInstanceOf(GhostObjectInterface::class, $calls[1]->getPhoneNumber());
92 92
 
93
-        $dql     = 'SELECT p, c FROM ' . DDC881PhoneNumber::class . ' p JOIN p.calls c';
93
+        $dql     = 'SELECT p, c FROM '.DDC881PhoneNumber::class.' p JOIN p.calls c';
94 94
         $numbers = $this->em->createQuery($dql)->getResult();
95 95
 
96 96
         self::assertCount(2, $numbers);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2602Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     {
138 138
         $entity = $event->getEntity();
139 139
 
140
-        if (! ($entity instanceof DDC2602Biography)) {
140
+        if ( ! ($entity instanceof DDC2602Biography)) {
141 141
             return;
142 142
         }
143 143
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
             $fieldSelection = new DDC2602FieldSelection();
159 159
 
160 160
             $fieldSelection->field      = $field;
161
-            $fieldSelection->choiceList = $field->choiceList->filter(function ($choice) use ($choiceList) {
161
+            $fieldSelection->choiceList = $field->choiceList->filter(function($choice) use ($choiceList) {
162 162
                 return in_array($choice->id, $choiceList, true);
163 163
             });
164 164
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3634Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
         $metadata = $this->em->getClassMetadata(DDC3634Entity::class);
29 29
 
30
-        if (! $metadata->getValueGenerationPlan()->containsDeferred()) {
30
+        if ( ! $metadata->getValueGenerationPlan()->containsDeferred()) {
31 31
             $this->markTestSkipped('Need a post-insert ID generator in order to make this test work correctly');
32 32
         }
33 33
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     public function testSavesVeryLargeIntegerAutoGeneratedValue() : void
46 46
     {
47
-        $veryLargeId = PHP_INT_MAX . PHP_INT_MAX;
47
+        $veryLargeId = PHP_INT_MAX.PHP_INT_MAX;
48 48
 
49 49
         $entityManager = EntityManager::create(
50 50
             new DDC3634LastInsertIdMockingConnection($veryLargeId, $this->em->getConnection()),
Please login to merge, or discard this patch.