Passed
Pull Request — master (#7448)
by Ilya
14:31
created
tests/Doctrine/Tests/ORM/Functional/Locking/OptimisticTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         $test = new OptimisticStandard();
121 121
 
122 122
         for ($i = 0; $i < 5; $i++) {
123
-            $test->name = 'test' . $i;
123
+            $test->name = 'test'.$i;
124 124
 
125 125
             $this->em->persist($test);
126 126
             $this->em->flush();
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         $caughtException = null;
253 253
 
254 254
         try {
255
-            $expectedVersionExpired = DateTime::createFromFormat('U', (string) ($test->version->getTimestamp()-3600));
255
+            $expectedVersionExpired = DateTime::createFromFormat('U', (string) ($test->version->getTimestamp() - 3600));
256 256
 
257 257
             $this->em->lock($test, LockMode::OPTIMISTIC, $expectedVersionExpired);
258 258
         } catch (OptimisticLockException $e) {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC493Test.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, c.data from ' . __NAMESPACE__ . '\\DDC493Distributor u JOIN u.contact c');
26
+        $q = $this->em->createQuery('select u, c.data from '.__NAMESPACE__.'\\DDC493Distributor u JOIN u.contact c');
27 27
 
28 28
         self::assertSQLEquals(
29 29
             'SELECT t0."id" AS c0, t1."data" AS c1, t0."discr" AS c2, t0."contact" AS c3 FROM "DDC493Distributor" t2 INNER JOIN "DDC493Customer" t0 ON t2."id" = t0."id" INNER JOIN "DDC493Contact" t1 ON t0."contact" = t1."id"',
Please login to merge, or discard this patch.
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/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/DDC1690Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 
87 87
     public function addPropertyChangedListener(PropertyChangedListener $listener)
88 88
     {
89
-        if (! in_array($listener, $this->listeners, true)) {
89
+        if ( ! in_array($listener, $this->listeners, true)) {
90 90
             $this->listeners[] = $listener;
91 91
         }
92 92
     }
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.