Test Failed
Push — develop ( 10da16...c19264 )
by Luís
63:31
created
tests/Doctrine/Tests/ORM/Functional/SQLFilterTest.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -180,6 +180,9 @@  discard block
 block discarded – undo
180 180
         self::assertFalse($em->getFilters()->isEnabled("foo_filter"));
181 181
     }
182 182
 
183
+    /**
184
+     * @param EntityManager $em
185
+     */
183 186
     protected function configureFilters($em)
184 187
     {
185 188
         // Add filters to the configuration of the EM
@@ -894,6 +897,9 @@  discard block
 block discarded – undo
894 897
         self::assertEquals(2, count($manager->managedContracts->slice(0, 10)));
895 898
     }
896 899
 
900
+    /**
901
+     * @param string $name
902
+     */
897 903
     private function usePersonNameFilter($name)
898 904
     {
899 905
         // Enable the filter
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 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;
6 6
 
@@ -569,11 +569,11 @@  discard block
 block discarded – undo
569 569
         $user = $this->em->find(CmsUser::class, $this->userId);
570 570
 
571 571
         self::assertFalse($user->articles->isInitialized());
572
-        self::assertEquals(2, count($user->articles->slice(0,10)));
572
+        self::assertEquals(2, count($user->articles->slice(0, 10)));
573 573
 
574 574
         $this->useCMSArticleTopicFilter();
575 575
 
576
-        self::assertEquals(1, count($user->articles->slice(0,10)));
576
+        self::assertEquals(1, count($user->articles->slice(0, 10)));
577 577
     }
578 578
 
579 579
     private function useCMSGroupPrefixFilter()
@@ -617,11 +617,11 @@  discard block
 block discarded – undo
617 617
         $user = $this->em->find(CmsUser::class, $this->userId2);
618 618
 
619 619
         self::assertFalse($user->groups->isInitialized());
620
-        self::assertEquals(2, count($user->groups->slice(0,10)));
620
+        self::assertEquals(2, count($user->groups->slice(0, 10)));
621 621
 
622 622
         $this->useCMSGroupPrefixFilter();
623 623
 
624
-        self::assertEquals(1, count($user->groups->slice(0,10)));
624
+        self::assertEquals(1, count($user->groups->slice(0, 10)));
625 625
     }
626 626
 
627 627
     private function loadFixtureData()
@@ -1111,11 +1111,11 @@  discard block
 block discarded – undo
1111 1111
 {
1112 1112
     public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias)
1113 1113
     {
1114
-        if (!in_array("LocaleAware", $targetEntity->getReflectionClass()->getInterfaceNames())) {
1114
+        if ( ! in_array("LocaleAware", $targetEntity->getReflectionClass()->getInterfaceNames())) {
1115 1115
             return "";
1116 1116
         }
1117 1117
 
1118
-        return $targetTableAlias.'.locale = ' . $this->getParameter('locale'); // getParam uses connection to quote the value.
1118
+        return $targetTableAlias.'.locale = '.$this->getParameter('locale'); // getParam uses connection to quote the value.
1119 1119
     }
1120 1120
 }
1121 1121
 
@@ -1127,7 +1127,7 @@  discard block
 block discarded – undo
1127 1127
             return "";
1128 1128
         }
1129 1129
 
1130
-        return $targetTableAlias.'.country = ' . $this->getParameter('country'); // getParam uses connection to quote the value.
1130
+        return $targetTableAlias.'.country = '.$this->getParameter('country'); // getParam uses connection to quote the value.
1131 1131
     }
1132 1132
 }
1133 1133
 
@@ -1139,7 +1139,7 @@  discard block
 block discarded – undo
1139 1139
             return "";
1140 1140
         }
1141 1141
 
1142
-        return $targetTableAlias.'.name LIKE ' . $this->getParameter('prefix'); // getParam uses connection to quote the value.
1142
+        return $targetTableAlias.'.name LIKE '.$this->getParameter('prefix'); // getParam uses connection to quote the value.
1143 1143
     }
1144 1144
 }
1145 1145
 
@@ -1151,7 +1151,7 @@  discard block
 block discarded – undo
1151 1151
             return "";
1152 1152
         }
1153 1153
 
1154
-        return $targetTableAlias.'.topic = ' . $this->getParameter('topic'); // getParam uses connection to quote the value.
1154
+        return $targetTableAlias.'.topic = '.$this->getParameter('topic'); // getParam uses connection to quote the value.
1155 1155
     }
1156 1156
 }
1157 1157
 
@@ -1163,7 +1163,7 @@  discard block
 block discarded – undo
1163 1163
             return "";
1164 1164
         }
1165 1165
 
1166
-        return $targetTableAlias.'.name LIKE ' . $this->getParameter('name');
1166
+        return $targetTableAlias.'.name LIKE '.$this->getParameter('name');
1167 1167
     }
1168 1168
 }
1169 1169
 
@@ -1175,7 +1175,7 @@  discard block
 block discarded – undo
1175 1175
             return "";
1176 1176
         }
1177 1177
 
1178
-        return $targetTableAlias.'."completed" = ' . $this->getParameter('completed');
1178
+        return $targetTableAlias.'."completed" = '.$this->getParameter('completed');
1179 1179
     }
1180 1180
 }
1181 1181
 
@@ -1187,6 +1187,6 @@  discard block
 block discarded – undo
1187 1187
             return "";
1188 1188
         }
1189 1189
 
1190
-        return $targetTableAlias.'.id = ' . $this->getParameter('id');
1190
+        return $targetTableAlias.'.id = '.$this->getParameter('id');
1191 1191
     }
1192 1192
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1301Test.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
7
-use Doctrine\ORM\Mapping\ClassMetadata;
8 7
 use Doctrine\ORM\Mapping\FetchMode;
9 8
 use Doctrine\Tests\Models;
10 9
 
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/DDC1430Test.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -184,6 +184,9 @@
 block discarded – undo
184 184
      */
185 185
     private $products;
186 186
 
187
+    /**
188
+     * @param string $status
189
+     */
187 190
     public function __construct($status)
188 191
     {
189 192
         $this->status   = $status;
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/DDC2074Test.php 2 patches
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
7
-use Doctrine\Common\Collections\ArrayCollection;
8
-use Doctrine\ORM\PersistentCollection;
9
-use Doctrine\Tests\Models\ECommerce\ECommerceCategory;
7
+use Doctrine\Common\Collections\ArrayCollection;
8
+use Doctrine\ORM\PersistentCollection;
9
+use Doctrine\Tests\Models\ECommerce\ECommerceCategory;
10 10
 use Doctrine\Tests\Models\ECommerce\ECommerceProduct;
11 11
 
12 12
 /**
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/DDC3785Test.php 3 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -117,6 +117,10 @@
 block discarded – undo
117 117
 	/** @ORM\Column(type = "string") */
118 118
 	private $value;
119 119
 
120
+    /**
121
+     * @param string $name
122
+     * @param string $value
123
+     */
120 124
     public function __construct($name, $value)
121 125
     {
122 126
         $this->name = $name;
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $this->em->flush();
46 46
 
47 47
         $asset->getAttributes()
48
-              ->removeElement($attribute1);
48
+                ->removeElement($attribute1);
49 49
 
50 50
         $idToBeRemoved = $attribute1->id;
51 51
 
@@ -105,17 +105,17 @@  discard block
 block discarded – undo
105 105
  */
106 106
 class DDC3785_Attribute
107 107
 {
108
-	/**
108
+    /**
109 109
      * @ORM\Id @ORM\Column(type="integer")
110 110
      * @ORM\GeneratedValue
111 111
      */
112 112
     public $id;
113 113
 
114
-	/** @ORM\Column(type = "string") */
115
-	private $name;
114
+    /** @ORM\Column(type = "string") */
115
+    private $name;
116 116
 
117
-	/** @ORM\Column(type = "string") */
118
-	private $value;
117
+    /** @ORM\Column(type = "string") */
118
+    private $value;
119 119
 
120 120
     public function __construct($name, $value)
121 121
     {
Please login to merge, or discard this 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
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
                     $this->em->getClassMetadata(DDC3785_Attribute::class)
26 26
                 ]
27 27
             );
28
-        } catch(\Exception $e) {
28
+        } catch (\Exception $e) {
29 29
         }
30 30
     }
31 31
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function convertToDatabaseValue($value, AbstractPlatform $platform)
158 158
     {
159
-        return (string)$value;
159
+        return (string) $value;
160 160
     }
161 161
 
162 162
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC618Test.php 3 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -155,6 +155,9 @@  discard block
 block discarded – undo
155 155
         $this->books = new \Doctrine\Common\Collections\ArrayCollection;
156 156
     }
157 157
 
158
+    /**
159
+     * @param string $title
160
+     */
158 161
     public function addBook($title)
159 162
     {
160 163
         $book = new DDC618Book($title, $this);
@@ -179,6 +182,9 @@  discard block
 block discarded – undo
179 182
     /** @ORM\ManyToOne(targetEntity="DDC618Author", inversedBy="books") */
180 183
     public $author;
181 184
 
185
+    /**
186
+     * @param DDC618Author $author
187
+     */
182 188
     function __construct($title, $author)
183 189
     {
184 190
         $this->title = $title;
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     public function testIndexByJoin()
76 76
     {
77 77
         $dql = 'SELECT A, B FROM Doctrine\Tests\ORM\Functional\Ticket\DDC618Author A '.
78
-               'INNER JOIN A.books B INDEX BY B.title ORDER BY A.name ASC';
78
+                'INNER JOIN A.books B INDEX BY B.title ORDER BY A.name ASC';
79 79
         $result = $this->em->createQuery($dql)->getResult(\Doctrine\ORM\Query::HYDRATE_OBJECT);
80 80
 
81 81
         self::assertEquals(3, count($result[0]->books)); // Alice, Joe doesn't appear because he has no books.
@@ -99,14 +99,14 @@  discard block
 block discarded – undo
99 99
     public function testIndexByToOneJoinSilentlyIgnored()
100 100
     {
101 101
         $dql = 'SELECT B, A FROM Doctrine\Tests\ORM\Functional\Ticket\DDC618Book B '.
102
-               'INNER JOIN B.author A INDEX BY A.name ORDER BY A.name ASC';
102
+                'INNER JOIN B.author A INDEX BY A.name ORDER BY A.name ASC';
103 103
         $result = $this->em->createQuery($dql)->getResult(\Doctrine\ORM\Query::HYDRATE_OBJECT);
104 104
 
105 105
         self::assertInstanceOf(DDC618Book::class, $result[0]);
106 106
         self::assertInstanceOf(DDC618Author::class, $result[0]->author);
107 107
 
108 108
         $dql = 'SELECT B, A FROM Doctrine\Tests\ORM\Functional\Ticket\DDC618Book B '.
109
-               'INNER JOIN B.author A INDEX BY A.name ORDER BY A.name ASC';
109
+                'INNER JOIN B.author A INDEX BY A.name ORDER BY A.name ASC';
110 110
         $result = $this->em->createQuery($dql)->getResult(\Doctrine\ORM\Query::HYDRATE_ARRAY);
111 111
 
112 112
         self::assertEquals("Alice", $result[0]['author']['name']);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     public function testCombineIndexBy()
119 119
     {
120 120
         $dql = 'SELECT A, B FROM Doctrine\Tests\ORM\Functional\Ticket\DDC618Author A INDEX BY A.id '.
121
-               'INNER JOIN A.books B INDEX BY B.title ORDER BY A.name ASC';
121
+                'INNER JOIN A.books B INDEX BY B.title ORDER BY A.name ASC';
122 122
         $result = $this->em->createQuery($dql)->getResult(\Doctrine\ORM\Query::HYDRATE_OBJECT);
123 123
 
124 124
         self::assertArrayHasKey(11, $result); // Alice
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 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
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
             $this->em->flush();
42 42
             $this->em->clear();
43
-        } catch(\Exception $e) {
43
+        } catch (\Exception $e) {
44 44
 
45 45
         }
46 46
     }
@@ -80,17 +80,17 @@  discard block
 block discarded – undo
80 80
 
81 81
         self::assertEquals(3, count($result[0]->books)); // Alice, Joe doesn't appear because he has no books.
82 82
         self::assertEquals('Alice', $result[0]->name);
83
-        self::assertTrue( isset($result[0]->books["In Wonderland"] ), "Indexing by title should have books by title.");
84
-        self::assertTrue( isset($result[0]->books["Reloaded"] ), "Indexing by title should have books by title.");
85
-        self::assertTrue( isset($result[0]->books["Test"] ), "Indexing by title should have books by title.");
83
+        self::assertTrue(isset($result[0]->books["In Wonderland"]), "Indexing by title should have books by title.");
84
+        self::assertTrue(isset($result[0]->books["Reloaded"]), "Indexing by title should have books by title.");
85
+        self::assertTrue(isset($result[0]->books["Test"]), "Indexing by title should have books by title.");
86 86
 
87 87
         $result = $this->em->createQuery($dql)->getResult(\Doctrine\ORM\Query::HYDRATE_ARRAY);
88 88
 
89 89
         self::assertEquals(3, count($result[0]['books'])); // Alice, Joe doesn't appear because he has no books.
90 90
         self::assertEquals('Alice', $result[0]['name']);
91
-        self::assertTrue( isset($result[0]['books']["In Wonderland"] ), "Indexing by title should have books by title.");
92
-        self::assertTrue( isset($result[0]['books']["Reloaded"] ), "Indexing by title should have books by title.");
93
-        self::assertTrue( isset($result[0]['books']["Test"] ), "Indexing by title should have books by title.");
91
+        self::assertTrue(isset($result[0]['books']["In Wonderland"]), "Indexing by title should have books by title.");
92
+        self::assertTrue(isset($result[0]['books']["Reloaded"]), "Indexing by title should have books by title.");
93
+        self::assertTrue(isset($result[0]['books']["Test"]), "Indexing by title should have books by title.");
94 94
     }
95 95
 
96 96
     /**
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
 
126 126
         self::assertEquals(3, count($result[11]->books)); // Alice, Joe doesn't appear because he has no books.
127 127
         self::assertEquals('Alice', $result[11]->name);
128
-        self::assertTrue( isset($result[11]->books["In Wonderland"] ), "Indexing by title should have books by title.");
129
-        self::assertTrue( isset($result[11]->books["Reloaded"] ), "Indexing by title should have books by title.");
130
-        self::assertTrue( isset($result[11]->books["Test"] ), "Indexing by title should have books by title.");
128
+        self::assertTrue(isset($result[11]->books["In Wonderland"]), "Indexing by title should have books by title.");
129
+        self::assertTrue(isset($result[11]->books["Reloaded"]), "Indexing by title should have books by title.");
130
+        self::assertTrue(isset($result[11]->books["Test"]), "Indexing by title should have books by title.");
131 131
     }
132 132
 }
133 133
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC832Test.php 2 patches
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -167,6 +167,9 @@  discard block
 block discarded – undo
167 167
      */
168 168
     public $version;
169 169
 
170
+    /**
171
+     * @param string $word
172
+     */
170 173
     public function __construct($word)
171 174
     {
172 175
         $this->word = $word;
@@ -196,6 +199,9 @@  discard block
 block discarded – undo
196 199
      */
197 200
     public $version;
198 201
 
202
+    /**
203
+     * @param string $name
204
+     */
199 205
     public function __construct($name)
200 206
     {
201 207
         $this->name = $name;
@@ -214,6 +220,11 @@  discard block
 block discarded – undo
214 220
     /** @ORM\Column(type="integer") */
215 221
     public $rgt;
216 222
 
223
+    /**
224
+     * @param string $name
225
+     * @param integer $lft
226
+     * @param integer $rgt
227
+     */
217 228
     public function __construct($name, $lft, $rgt)
218 229
     {
219 230
         $this->name = $name;
Please login to merge, or discard this 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
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
                     $this->em->getClassMetadata(DDC832Like::class),
29 29
                 ]
30 30
             );
31
-        } catch(\Exception $e) {
31
+        } catch (\Exception $e) {
32 32
         }
33 33
     }
34 34
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php 2 patches
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -353,6 +353,9 @@  discard block
 block discarded – undo
353 353
     /** @ORM\Embedded(class = "DDC93Timestamps") */
354 354
     public $timestamps;
355 355
 
356
+    /**
357
+     * @param string $name
358
+     */
356 359
     public function __construct($name = null, DDC93Address $address = null)
357 360
     {
358 361
         $this->name = $name;
@@ -415,6 +418,9 @@  discard block
 block discarded – undo
415 418
      */
416 419
     public $name;
417 420
 
421
+    /**
422
+     * @param string $name
423
+     */
418 424
     public function __construct($name = null)
419 425
     {
420 426
         $this->name = $name;
@@ -441,6 +447,11 @@  discard block
 block discarded – undo
441 447
     /** @ORM\Embedded(class = "DDC93Country") */
442 448
     public $country;
443 449
 
450
+    /**
451
+     * @param string $street
452
+     * @param string $zip
453
+     * @param string $city
454
+     */
444 455
     public function __construct($street = null, $zip = null, $city = null, DDC93Country $country = null)
445 456
     {
446 457
         $this->street = $street;
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 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;
6 6
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
                 $this->em->getClassMetadata(DDC3027Dog::class),
33 33
                 ]
34 34
             );
35
-        } catch(\Exception $e) {
35
+        } catch (\Exception $e) {
36 36
         }
37 37
     }
38 38
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         self::assertEquals('United States of America', $person->address->country->name);
88 88
 
89 89
         // 4. check deleting works
90
-        $personId = $person->id;;
90
+        $personId = $person->id; ;
91 91
         $this->em->remove($person);
92 92
         $this->em->flush();
93 93
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $this->em->flush();
112 112
         $this->em->clear();
113 113
 
114
-        $dql = "SELECT p FROM " . __NAMESPACE__ . "\DDC93Person p";
114
+        $dql = "SELECT p FROM ".__NAMESPACE__."\DDC93Person p";
115 115
         $persons = $this->em->createQuery($dql)->getResult();
116 116
 
117 117
         self::assertCount(3, $persons);
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             self::assertEquals('United States of America', $person->address->country->name);
125 125
         }
126 126
 
127
-        $dql = "SELECT p FROM " . __NAMESPACE__ . "\DDC93Person p";
127
+        $dql = "SELECT p FROM ".__NAMESPACE__."\DDC93Person p";
128 128
         $persons = $this->em->createQuery($dql)->getArrayResult();
129 129
 
130 130
         foreach ($persons as $person) {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $this->em->flush();
150 150
 
151 151
         // SELECT
152
-        $selectDql = "SELECT p FROM " . __NAMESPACE__ ."\\DDC93Person p WHERE p.address.city = :city AND p.address.country.name = :country";
152
+        $selectDql = "SELECT p FROM ".__NAMESPACE__."\\DDC93Person p WHERE p.address.city = :city AND p.address.country.name = :country";
153 153
         $loadedPerson = $this->em->createQuery($selectDql)
154 154
             ->setParameter('city', 'Karlsruhe')
155 155
             ->setParameter('country', 'Germany')
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         );
165 165
 
166 166
         // UPDATE
167
-        $updateDql = "UPDATE " . __NAMESPACE__ . "\\DDC93Person p SET p.address.street = :street, p.address.country.name = :country WHERE p.address.city = :city";
167
+        $updateDql = "UPDATE ".__NAMESPACE__."\\DDC93Person p SET p.address.street = :street, p.address.country.name = :country WHERE p.address.city = :city";
168 168
         $this->em->createQuery($updateDql)
169 169
             ->setParameter('street', 'Boo')
170 170
             ->setParameter('country', 'DE')
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         self::assertEquals('DE', $person->address->country->name);
177 177
 
178 178
         // DELETE
179
-        $this->em->createQuery("DELETE " . __NAMESPACE__ . "\\DDC93Person p WHERE p.address.city = :city AND p.address.country.name = :country")
179
+        $this->em->createQuery("DELETE ".__NAMESPACE__."\\DDC93Person p WHERE p.address.city = :city AND p.address.country.name = :country")
180 180
             ->setParameter('city', 'Karlsruhe')
181 181
             ->setParameter('country', 'DE')
182 182
             ->execute();
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
         $this->em->clear();
194 194
 
195 195
         // Prove that the entity was persisted correctly.
196
-        $dql = "SELECT p FROM " . __NAMESPACE__ ."\\DDC93Person p WHERE p.name = :name";
196
+        $dql = "SELECT p FROM ".__NAMESPACE__."\\DDC93Person p WHERE p.name = :name";
197 197
 
198 198
         $person = $this->em->createQuery($dql)
199 199
             ->setParameter('name', 'Karl')
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
         // Clear the EM and prove that the embeddable can be the subject of a partial query.
208 208
         $this->em->clear();
209 209
 
210
-        $dql = "SELECT PARTIAL p.{id,address.city} FROM " . __NAMESPACE__ ."\\DDC93Person p WHERE p.name = :name";
210
+        $dql = "SELECT PARTIAL p.{id,address.city} FROM ".__NAMESPACE__."\\DDC93Person p WHERE p.name = :name";
211 211
 
212 212
         $person = $this->em->createQuery($dql)
213 213
             ->setParameter('name', 'Karl')
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
         // Clear the EM and prove that the embeddable can be the subject of a partial query regardless of attributes positions.
224 224
         $this->em->clear();
225 225
 
226
-        $dql = "SELECT PARTIAL p.{address.city, id} FROM " . __NAMESPACE__ ."\\DDC93Person p WHERE p.name = :name";
226
+        $dql = "SELECT PARTIAL p.{address.city, id} FROM ".__NAMESPACE__."\\DDC93Person p WHERE p.name = :name";
227 227
 
228 228
         $person = $this->em->createQuery($dql)
229 229
             ->setParameter('name', 'Karl')
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
         $this->expectException(QueryException::class);
243 243
         $this->expectExceptionMessage('no field or association named address.asdfasdf');
244 244
 
245
-        $this->em->createQuery("SELECT p FROM " . __NAMESPACE__ . "\\DDC93Person p WHERE p.address.asdfasdf IS NULL")
245
+        $this->em->createQuery("SELECT p FROM ".__NAMESPACE__."\\DDC93Person p WHERE p.address.asdfasdf IS NULL")
246 246
             ->execute();
247 247
     }
248 248
 
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         $this->expectException(QueryException::class);
252 252
         $this->expectExceptionMessage("no mapped field named 'address.asdfasdf'");
253 253
 
254
-        $this->em->createQuery("SELECT PARTIAL p.{id,address.asdfasdf} FROM " . __NAMESPACE__ . "\\DDC93Person p")
254
+        $this->em->createQuery("SELECT PARTIAL p.{id,address.asdfasdf} FROM ".__NAMESPACE__."\\DDC93Person p")
255 255
             ->execute();
256 256
     }
257 257
 
@@ -313,15 +313,15 @@  discard block
 block discarded – undo
313 313
         $this->expectException(MappingException::class);
314 314
         $this->expectExceptionMessage(
315 315
             sprintf(
316
-                'Infinite nesting detected for embedded property %s::nested. ' .
316
+                'Infinite nesting detected for embedded property %s::nested. '.
317 317
                 'You cannot embed an embeddable from the same type inside an embeddable.',
318
-                __NAMESPACE__ . '\\' . $declaredEmbeddableClassName
318
+                __NAMESPACE__.'\\'.$declaredEmbeddableClassName
319 319
             )
320 320
         );
321 321
 
322 322
         $this->schemaTool->createSchema(
323 323
             [
324
-            $this->em->getClassMetadata(__NAMESPACE__ . '\\' . $embeddableClassName),
324
+            $this->em->getClassMetadata(__NAMESPACE__.'\\'.$embeddableClassName),
325 325
             ]
326 326
         );
327 327
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Hydration/ObjectHydratorTest.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 namespace Doctrine\Tests\ORM\Hydration;
6 6
 
7 7
 use Doctrine\DBAL\Types\Type;
8
-use Doctrine\ORM\Mapping\ClassMetadata;
9 8
 use Doctrine\ORM\Mapping\FetchMode;
10 9
 use Doctrine\ORM\PersistentCollection;
11 10
 use Doctrine\ORM\Proxy\ProxyFactory;
Please login to merge, or discard this patch.
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -1024,14 +1024,14 @@  discard block
 block discarded – undo
1024 1024
 
1025 1025
         // mocking the proxy factory
1026 1026
         $proxyFactory = $this->getMockBuilder(ProxyFactory::class)
1027
-                             ->setMethods(['getProxy'])
1028
-                             ->disableOriginalConstructor()
1029
-                             ->getMock();
1027
+                                ->setMethods(['getProxy'])
1028
+                                ->disableOriginalConstructor()
1029
+                                ->getMock();
1030 1030
 
1031 1031
         $proxyFactory->expects($this->once())
1032
-                     ->method('getProxy')
1033
-                     ->with($this->equalTo(ECommerceShipping::class), ['id' => 42])
1034
-                     ->will($this->returnValue($proxyInstance));
1032
+                        ->method('getProxy')
1033
+                        ->with($this->equalTo(ECommerceShipping::class), ['id' => 42])
1034
+                        ->will($this->returnValue($proxyInstance));
1035 1035
 
1036 1036
         $this->em->setProxyFactory($proxyFactory);
1037 1037
 
@@ -1073,14 +1073,14 @@  discard block
 block discarded – undo
1073 1073
 
1074 1074
         // mocking the proxy factory
1075 1075
         $proxyFactory = $this->getMockBuilder(ProxyFactory::class)
1076
-                             ->setMethods(['getProxy'])
1077
-                             ->disableOriginalConstructor()
1078
-                             ->getMock();
1076
+                                ->setMethods(['getProxy'])
1077
+                                ->disableOriginalConstructor()
1078
+                                ->getMock();
1079 1079
 
1080 1080
         $proxyFactory->expects($this->once())
1081
-                     ->method('getProxy')
1082
-                     ->with($this->equalTo(ECommerceShipping::class), ['id' => 42])
1083
-                     ->will($this->returnValue($proxyInstance));
1081
+                        ->method('getProxy')
1082
+                        ->with($this->equalTo(ECommerceShipping::class), ['id' => 42])
1083
+                        ->will($this->returnValue($proxyInstance));
1084 1084
 
1085 1085
         $this->em->setProxyFactory($proxyFactory);
1086 1086
 
@@ -1906,10 +1906,10 @@  discard block
 block discarded – undo
1906 1906
         $rsm->setDiscriminatorColumn('c', 'c_discr');
1907 1907
 
1908 1908
         $resultSet = [
1909
-              [
1910
-                  'c__id'   => '1',
1911
-                  'c_discr' => 'fix',
1912
-              ],
1909
+                [
1910
+                    'c__id'   => '1',
1911
+                    'c_discr' => 'fix',
1912
+                ],
1913 1913
         ];
1914 1914
 
1915 1915
         $stmt     = new HydratorMockStatement($resultSet);
@@ -1938,12 +1938,12 @@  discard block
 block discarded – undo
1938 1938
         $rsm->setDiscriminatorColumn('e', 'e_discr');
1939 1939
 
1940 1940
         $resultSet = [
1941
-              [
1942
-                  'c__id'   => '1',
1943
-                  'c_discr' => 'fix',
1944
-                  'e__id'   => '1',
1945
-                  'e__name' => 'Fabio B. Silva'
1946
-              ],
1941
+                [
1942
+                    'c__id'   => '1',
1943
+                    'c_discr' => 'fix',
1944
+                    'e__id'   => '1',
1945
+                    'e__name' => 'Fabio B. Silva'
1946
+                ],
1947 1947
         ];
1948 1948
 
1949 1949
         $stmt     = new HydratorMockStatement($resultSet);
@@ -1968,11 +1968,11 @@  discard block
 block discarded – undo
1968 1968
         $rsm->setDiscriminatorColumn('p', 'discr');
1969 1969
 
1970 1970
         $resultSet = [
1971
-              [
1972
-                  'p__id'   => '1',
1973
-                  'p__name' => 'Fabio B. Silva',
1974
-                  'discr'   => 'subworker'
1975
-              ],
1971
+                [
1972
+                    'p__id'   => '1',
1973
+                    'p__name' => 'Fabio B. Silva',
1974
+                    'discr'   => 'subworker'
1975
+                ],
1976 1976
         ];
1977 1977
 
1978 1978
         $stmt       = new HydratorMockStatement($resultSet);
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\Hydration;
6 6
 
Please login to merge, or discard this patch.