Completed
Pull Request — master (#8105)
by
unknown
65:07
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC719Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function addGroup(Group $child)
94 94
     {
95
-        if (! $this->children->contains($child)) {
95
+        if ( ! $this->children->contains($child)) {
96 96
             $this->children->add($child);
97 97
             $child->addGroup($this);
98 98
         }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function addChannel(Channel $child)
106 106
     {
107
-        if (! $this->channels->contains($child)) {
107
+        if ( ! $this->channels->contains($child)) {
108 108
             $this->channels->add($child);
109 109
         }
110 110
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3330Test.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
         $this->em->clear();
36 36
 
37 37
         $query = $this->em->createQuery(
38
-            'SELECT b, h' .
39
-            ' FROM Doctrine\Tests\ORM\Functional\Ticket\DDC3330Building b' .
40
-            ' LEFT JOIN b.halls h' .
38
+            'SELECT b, h'.
39
+            ' FROM Doctrine\Tests\ORM\Functional\Ticket\DDC3330Building b'.
40
+            ' LEFT JOIN b.halls h'.
41 41
             ' ORDER BY b.id ASC, h.name DESC'
42 42
         )
43 43
         ->setMaxResults(3);
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         for ($i = 0; $i < 10; $i++) {
58 58
             $hall       = new DDC3330Hall();
59
-            $hall->name = 'HALL-' . $i;
59
+            $hall->name = 'HALL-'.$i;
60 60
             $building->addHall($hall);
61 61
         }
62 62
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3042Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             $this
32 32
                 ->em
33 33
                 ->createQuery(
34
-                    'SELECT f, b FROM ' . __NAMESPACE__ . '\DDC3042Foo f JOIN ' . __NAMESPACE__ . '\DDC3042Bar b WITH 1 = 1'
34
+                    'SELECT f, b FROM '.__NAMESPACE__.'\DDC3042Foo f JOIN '.__NAMESPACE__.'\DDC3042Bar b WITH 1 = 1'
35 35
                 )
36 36
                 ->getSQL()
37 37
         );
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1335Test.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function testDql() : void
33 33
     {
34
-        $dql    = 'SELECT u FROM ' . __NAMESPACE__ . '\DDC1335User u INDEX BY u.id';
34
+        $dql    = 'SELECT u FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.id';
35 35
         $query  = $this->em->createQuery($dql);
36 36
         $result = $query->getResult();
37 37
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         self::assertArrayHasKey(2, $result);
41 41
         self::assertArrayHasKey(3, $result);
42 42
 
43
-        $dql    = 'SELECT u, p FROM ' . __NAMESPACE__ . '\DDC1335User u INDEX BY u.email INNER JOIN u.phones p INDEX BY p.id';
43
+        $dql    = 'SELECT u, p FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.email INNER JOIN u.phones p INDEX BY p.id';
44 44
         $query  = $this->em->createQuery($dql);
45 45
         $result = $query->getResult();
46 46
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         self::assertArrayHasKey(1, $result);
83 83
         self::assertArrayHasKey(2, $result);
84 84
         self::assertArrayHasKey(3, $result);
85
-        self::assertEquals('SELECT u FROM ' . __NAMESPACE__ . '\DDC1335User u INDEX BY u.id', $dql);
85
+        self::assertEquals('SELECT u FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.id', $dql);
86 86
     }
87 87
 
88 88
     public function testIndexByUnique() : void
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         self::assertArrayHasKey('[email protected]', $result);
98 98
         self::assertArrayHasKey('[email protected]', $result);
99 99
         self::assertArrayHasKey('[email protected]', $result);
100
-        self::assertEquals('SELECT u FROM ' . __NAMESPACE__ . '\DDC1335User u INDEX BY u.email', $dql);
100
+        self::assertEquals('SELECT u FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.email', $dql);
101 101
     }
102 102
 
103 103
     public function testIndexWithJoin() : void
@@ -131,14 +131,14 @@  discard block
 block discarded – undo
131 131
         self::assertArrayHasKey(8, $result['[email protected]']->phones->toArray());
132 132
         self::assertArrayHasKey(9, $result['[email protected]']->phones->toArray());
133 133
 
134
-        self::assertEquals('SELECT u, p FROM ' . __NAMESPACE__ . '\DDC1335User u INDEX BY u.email INNER JOIN u.phones p INDEX BY p.id', $dql);
134
+        self::assertEquals('SELECT u, p FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.email INNER JOIN u.phones p INDEX BY p.id', $dql);
135 135
     }
136 136
 
137 137
     private function loadFixture()
138 138
     {
139
-        $p1 = ['11 xxxx-xxxx','11 yyyy-yyyy','11 zzzz-zzzz'];
140
-        $p2 = ['22 xxxx-xxxx','22 yyyy-yyyy','22 zzzz-zzzz'];
141
-        $p3 = ['33 xxxx-xxxx','33 yyyy-yyyy','33 zzzz-zzzz'];
139
+        $p1 = ['11 xxxx-xxxx', '11 yyyy-yyyy', '11 zzzz-zzzz'];
140
+        $p2 = ['22 xxxx-xxxx', '22 yyyy-yyyy', '22 zzzz-zzzz'];
141
+        $p3 = ['33 xxxx-xxxx', '33 yyyy-yyyy', '33 zzzz-zzzz'];
142 142
 
143 143
         $u1 = new DDC1335User('[email protected]', 'Foo', $p1);
144 144
         $u2 = new DDC1335User('[email protected]', 'Bar', $p2);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC448Test.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 b from ' . __NAMESPACE__ . '\\DDC448SubTable b where b.connectedClassId = ?1');
26
+        $q = $this->em->createQuery('select b from '.__NAMESPACE__.'\\DDC448SubTable b where b.connectedClassId = ?1');
27 27
 
28 28
         self::assertSQLEquals(
29 29
             'SELECT t0."id" AS c0, t0."discr" AS c1, t0."connectedClassId" AS c2 FROM "SubTable" t1 INNER JOIN "DDC448MainTable" t0 ON t1."id" = t0."id" WHERE t0."connectedClassId" = ?',
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2931Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             ->em
77 77
             ->createQuery(
78 78
                 'SELECT e, p, c FROM '
79
-                . __NAMESPACE__ . '\\DDC2931User e LEFT JOIN e.parent p LEFT JOIN e.child c WHERE e = :id'
79
+                . __NAMESPACE__.'\\DDC2931User e LEFT JOIN e.parent p LEFT JOIN e.child c WHERE e = :id'
80 80
             )
81 81
             ->setParameter('id', $second)
82 82
             ->setHint(Query::HINT_REFRESH, true)
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2984Test.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     {
22 22
         parent::setUp();
23 23
 
24
-        if (! Type::hasType('ddc2984_domain_user_id')) {
24
+        if ( ! Type::hasType('ddc2984_domain_user_id')) {
25 25
             Type::addType(
26 26
                 'ddc2984_domain_user_id',
27 27
                 DDC2984UserIdCustomDbalType::class
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $this->em->persist($user);
48 48
         $this->em->flush();
49 49
 
50
-        $repository = $this->em->getRepository(__NAMESPACE__ . '\DDC2984User');
50
+        $repository = $this->em->getRepository(__NAMESPACE__.'\DDC2984User');
51 51
 
52 52
         $sameUser = $repository->find(new DDC2984DomainUserId('unique_id_within_a_vo'));
53 53
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             return $value;
190 190
         }
191 191
 
192
-        if (! $value instanceof DDC2984DomainUserId) {
192
+        if ( ! $value instanceof DDC2984DomainUserId) {
193 193
             throw ConversionException::conversionFailed($value, $this->getName());
194 194
         }
195 195
 
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
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
         $platform = $this->em->getConnection()->getDatabasePlatform();
30 30
 
31
-        if (! $platform->supportsSchemas() && ! $platform->canEmulateSchemas()) {
31
+        if ( ! $platform->supportsSchemas() && ! $platform->canEmulateSchemas()) {
32 32
             $this->markTestSkipped('This test is only useful for databases that support schemas or can emulate them.');
33 33
         }
34 34
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
         // Checks sequence name validity
66 66
         self::assertEquals(
67
-            str_replace('"', '', $fullTableName) . '_' . $property->getColumnName() . '_seq',
67
+            str_replace('"', '', $fullTableName).'_'.$property->getColumnName().'_seq',
68 68
             $idSequenceName
69 69
         );
70 70
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2214Test.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
 
51 51
         $related = $this
52 52
             ->em
53
-            ->createQuery('SELECT b FROM ' . __NAMESPACE__ . '\DDC2214Bar b WHERE b.id IN(:ids)')
53
+            ->createQuery('SELECT b FROM '.__NAMESPACE__.'\DDC2214Bar b WHERE b.id IN(:ids)')
54 54
             ->setParameter('ids', [$bar])
55 55
             ->getResult();
56 56
 
Please login to merge, or discard this patch.