Failed Conditions
Pull Request — develop (#6947)
by Filippo
10:01
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3170Test.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -50,19 +50,19 @@
 block discarded – undo
50 50
         $this->em->clear();
51 51
 
52 52
         $result = $this->em->createQueryBuilder()
53
-                  ->select('p')
54
-                  ->from(DDC3170ProductJoined::class, 'p')
55
-                  ->getQuery()
56
-                  ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT);
53
+                    ->select('p')
54
+                    ->from(DDC3170ProductJoined::class, 'p')
55
+                    ->getQuery()
56
+                    ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT);
57 57
 
58 58
         self::assertCount(1, $result);
59 59
         self::assertContainsOnly(DDC3170ProductJoined::class, $result);
60 60
 
61 61
         $result = $this->em->createQueryBuilder()
62
-                  ->select('p')
63
-                  ->from(DDC3170ProductSingleTable::class, 'p')
64
-                  ->getQuery()
65
-                  ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT);
62
+                    ->select('p')
63
+                    ->from(DDC3170ProductSingleTable::class, 'p')
64
+                    ->getQuery()
65
+                    ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT);
66 66
 
67 67
         self::assertCount(1, $result);
68 68
         self::assertContainsOnly(DDC3170ProductSingleTable::class, $result);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2084Test.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
         try {
17 17
             $this->schemaTool->createSchema(
18 18
                 [
19
-                $this->em->getClassMetadata(__NAMESPACE__ . '\DDC2084\MyEntity1'),
20
-                $this->em->getClassMetadata(__NAMESPACE__ . '\DDC2084\MyEntity2'),
19
+                $this->em->getClassMetadata(__NAMESPACE__.'\DDC2084\MyEntity1'),
20
+                $this->em->getClassMetadata(__NAMESPACE__.'\DDC2084\MyEntity2'),
21 21
                 ]
22 22
             );
23 23
         } catch (\Exception $exc) {
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $e1 = $this->loadFixture();
46 46
         $e2 = $e1->getMyEntity2();
47
-        $e  = $this->em->find(__NAMESPACE__ . '\DDC2084\MyEntity1', $e2);
47
+        $e  = $this->em->find(__NAMESPACE__.'\DDC2084\MyEntity1', $e2);
48 48
 
49
-        self::assertInstanceOf(__NAMESPACE__ . '\DDC2084\MyEntity1', $e);
50
-        self::assertInstanceOf(__NAMESPACE__ . '\DDC2084\MyEntity2', $e->getMyEntity2());
49
+        self::assertInstanceOf(__NAMESPACE__.'\DDC2084\MyEntity1', $e);
50
+        self::assertInstanceOf(__NAMESPACE__.'\DDC2084\MyEntity2', $e->getMyEntity2());
51 51
         self::assertEquals('Foo', $e->getMyEntity2()->getValue());
52 52
     }
53 53
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function testinvalidIdentifierBindingEntityException()
59 59
     {
60
-        $this->em->find(__NAMESPACE__ . '\DDC2084\MyEntity1', new DDC2084\MyEntity2('Foo'));
60
+        $this->em->find(__NAMESPACE__.'\DDC2084\MyEntity1', new DDC2084\MyEntity2('Foo'));
61 61
     }
62 62
 }
63 63
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1436Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         // step 1
44 44
         $page = $this->em
45
-                ->createQuery('SELECT p, parent FROM ' . __NAMESPACE__ . '\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id')
45
+                ->createQuery('SELECT p, parent FROM '.__NAMESPACE__.'\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id')
46 46
                 ->setParameter('id', $id)
47 47
                 ->getOneOrNullResult();
48 48
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2224Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
     public function testIssue()
24 24
     {
25
-        $dql = 'SELECT e FROM ' . __NAMESPACE__ . '\DDC2224Entity e WHERE e.field = :field';
25
+        $dql = 'SELECT e FROM '.__NAMESPACE__.'\DDC2224Entity e WHERE e.field = :field';
26 26
         $query = $this->em->createQuery($dql);
27 27
         $query->setQueryCacheDriver(new ArrayCache());
28 28
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1225Test.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
     {
31 31
         $qb = $this->em->createQueryBuilder();
32 32
         $qb->from(DDC1225_TestEntity1::class, 'te1')
33
-           ->select('te1')
34
-           ->where('te1.testEntity2 = ?1')
35
-           ->setParameter(1, 0);
33
+            ->select('te1')
34
+            ->where('te1.testEntity2 = ?1')
35
+            ->setParameter(1, 0);
36 36
 
37 37
         self::assertSQLEquals(
38 38
             'SELECT t0."test_entity2_id" AS c0 FROM "te1" t0 WHERE t0."test_entity2_id" = ?',
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2825Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         // Checks sequence name validity
63 63
         self::assertEquals(
64
-            str_replace('"', '', $fullTableName) . '_' . $property->getColumnName() . '_seq',
64
+            str_replace('"', '', $fullTableName).'_'.$property->getColumnName().'_seq',
65 65
             $idSequenceName
66 66
         );
67 67
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2862Test.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function testIssue()
33 33
     {
34 34
         $user1    = new DDC2862User('Foo');
35
-        $driver1  = new DDC2862Driver('Bar' , $user1);
35
+        $driver1  = new DDC2862Driver('Bar', $user1);
36 36
 
37 37
         $this->em->persist($user1);
38 38
         $this->em->persist($driver1);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     public function testIssueReopened()
71 71
     {
72 72
         $user1    = new DDC2862User('Foo');
73
-        $driver1  = new DDC2862Driver('Bar' , $user1);
73
+        $driver1  = new DDC2862Driver('Bar', $user1);
74 74
 
75 75
         $this->em->persist($user1);
76 76
         $this->em->persist($driver1);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1925Test.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $product->addBuyer($user);
36 36
 
37 37
         $this->em->getUnitOfWork()
38
-                  ->computeChangeSets();
38
+                    ->computeChangeSets();
39 39
 
40 40
         $this->em->persist($product);
41 41
         $this->em->flush();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/Issue5989Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
         $employee = new Issue5989Employee();
31 31
 
32
-        $employeeTags =['tag2', 'tag3'];
32
+        $employeeTags = ['tag2', 'tag3'];
33 33
         $employee->tags = $employeeTags;
34 34
         $this->em->persist($employee);
35 35
 
Please login to merge, or discard this patch.