Completed
Pull Request — 2.8.x (#8130)
by Gabriel
07:41
created
lib/Doctrine/ORM/Tools/Console/Command/GenerateRepositoriesCommand.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@
 block discarded – undo
46 46
     protected function configure()
47 47
     {
48 48
         $this->setName('orm:generate-repositories')
49
-             ->setAliases(['orm:generate:repositories'])
50
-             ->setDescription('Generate repository classes from your mapping information')
51
-             ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your repository classes.')
52
-             ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')
53
-             ->setHelp('Generate repository classes from your mapping information.');
49
+                ->setAliases(['orm:generate:repositories'])
50
+                ->setDescription('Generate repository classes from your mapping information')
51
+                ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your repository classes.')
52
+                ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')
53
+                ->setHelp('Generate repository classes from your mapping information.');
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     protected function execute(InputInterface $input, OutputInterface $output)
62 62
     {
63 63
         $ui = new SymfonyStyle($input, $output);
64
-        $ui->warning('Command ' . $this->getName() . ' is deprecated and will be removed in Doctrine ORM 3.0.');
64
+        $ui->warning('Command '.$this->getName().' is deprecated and will be removed in Doctrine ORM 3.0.');
65 65
 
66 66
         $em = $this->getHelper('em')->getEntityManager();
67 67
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesCommand.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -47,18 +47,18 @@  discard block
 block discarded – undo
47 47
     protected function configure()
48 48
     {
49 49
         $this->setName('orm:generate-entities')
50
-             ->setAliases(['orm:generate:entities'])
51
-             ->setDescription('Generate entity classes and method stubs from your mapping information')
52
-             ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your entity classes.')
53
-             ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')
54
-             ->addOption('generate-annotations', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should generate annotation metadata on entities.', false)
55
-             ->addOption('generate-methods', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should generate stub methods on entities.', true)
56
-             ->addOption('regenerate-entities', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should regenerate entity if it exists.', false)
57
-             ->addOption('update-entities', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should only update entity if it exists.', true)
58
-             ->addOption('extend', null, InputOption::VALUE_REQUIRED, 'Defines a base class to be extended by generated entity classes.')
59
-             ->addOption('num-spaces', null, InputOption::VALUE_REQUIRED, 'Defines the number of indentation spaces', 4)
60
-             ->addOption('no-backup', null, InputOption::VALUE_NONE, 'Flag to define if generator should avoid backuping existing entity file if it exists.')
61
-             ->setHelp(<<<EOT
50
+                ->setAliases(['orm:generate:entities'])
51
+                ->setDescription('Generate entity classes and method stubs from your mapping information')
52
+                ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your entity classes.')
53
+                ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')
54
+                ->addOption('generate-annotations', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should generate annotation metadata on entities.', false)
55
+                ->addOption('generate-methods', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should generate stub methods on entities.', true)
56
+                ->addOption('regenerate-entities', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should regenerate entity if it exists.', false)
57
+                ->addOption('update-entities', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should only update entity if it exists.', true)
58
+                ->addOption('extend', null, InputOption::VALUE_REQUIRED, 'Defines a base class to be extended by generated entity classes.')
59
+                ->addOption('num-spaces', null, InputOption::VALUE_REQUIRED, 'Defines the number of indentation spaces', 4)
60
+                ->addOption('no-backup', null, InputOption::VALUE_NONE, 'Flag to define if generator should avoid backuping existing entity file if it exists.')
61
+                ->setHelp(<<<EOT
62 62
 Generate entity classes and method stubs from your mapping information.
63 63
 
64 64
 If you use the <comment>--update-entities</comment> or <comment>--regenerate-entities</comment> flags your existing
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 class is supposed to extend which. You have to adjust the entity
79 79
 code manually for inheritance to work!
80 80
 EOT
81
-             );
81
+                );
82 82
     }
83 83
 
84 84
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     protected function execute(InputInterface $input, OutputInterface $output)
90 90
     {
91 91
         $ui = new SymfonyStyle($input, $output);
92
-        $ui->warning('Command ' . $this->getName() . ' is deprecated and will be removed in Doctrine ORM 3.0.');
92
+        $ui->warning('Command '.$this->getName().' is deprecated and will be removed in Doctrine ORM 3.0.');
93 93
 
94 94
         $em = $this->getHelper('em')->getEntityManager();
95 95
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         $entityGenerator->setRegenerateEntityIfExists($input->getOption('regenerate-entities'));
126 126
         $entityGenerator->setUpdateEntityIfExists($input->getOption('update-entities'));
127 127
         $entityGenerator->setNumSpaces($input->getOption('num-spaces'));
128
-        $entityGenerator->setBackupExisting(!$input->getOption('no-backup'));
128
+        $entityGenerator->setBackupExisting( ! $input->getOption('no-backup'));
129 129
 
130 130
         if (($extend = $input->getOption('extend')) !== null) {
131 131
             $entityGenerator->setClassToExtend($extend);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@  discard block
 block discarded – undo
40 40
     protected function configure()
41 41
     {
42 42
         $this->setName('orm:info')
43
-             ->setDescription('Show basic information about all mapped entities')
44
-             ->setHelp(<<<EOT
43
+                ->setDescription('Show basic information about all mapped entities')
44
+                ->setHelp(<<<EOT
45 45
 The <info>%command.name%</info> shows basic information about which
46 46
 entities exist and possibly if their mapping information contains errors or
47 47
 not.
48 48
 EOT
49
-             );
49
+                );
50 50
     }
51 51
 
52 52
     /**
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
         $entityManager = $this->getHelper('em')->getEntityManager();
61 61
 
62 62
         $entityClassNames = $entityManager->getConfiguration()
63
-                                          ->getMetadataDriverImpl()
64
-                                          ->getAllClassNames();
63
+                                            ->getMetadataDriverImpl()
64
+                                            ->getAllClassNames();
65 65
 
66 66
         if ( ! $entityClassNames) {
67 67
             $ui->caution(
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/EnsureProductionSettingsCommand.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@
 block discarded – undo
45 45
     protected function configure()
46 46
     {
47 47
         $this->setName('orm:ensure-production-settings')
48
-             ->setDescription('Verify that Doctrine is properly configured for a production environment')
49
-             ->addOption('complete', null, InputOption::VALUE_NONE, 'Flag to also inspect database connection existence.')
50
-             ->setHelp('Verify that Doctrine is properly configured for a production environment.');
48
+                ->setDescription('Verify that Doctrine is properly configured for a production environment')
49
+                ->addOption('complete', null, InputOption::VALUE_NONE, 'Flag to also inspect database connection existence.')
50
+                ->setHelp('Verify that Doctrine is properly configured for a production environment.');
51 51
     }
52 52
 
53 53
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/GenerateProxiesCommand.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@
 block discarded – undo
46 46
     protected function configure()
47 47
     {
48 48
         $this->setName('orm:generate-proxies')
49
-             ->setAliases(['orm:generate:proxies'])
50
-             ->setDescription('Generates proxy classes for entity classes')
51
-             ->addArgument('dest-path', InputArgument::OPTIONAL, 'The path to generate your proxy classes. If none is provided, it will attempt to grab from configuration.')
52
-             ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')
53
-             ->setHelp('Generates proxy classes for entity classes.');
49
+                ->setAliases(['orm:generate:proxies'])
50
+                ->setDescription('Generates proxy classes for entity classes')
51
+                ->addArgument('dest-path', InputArgument::OPTIONAL, 'The path to generate your proxy classes. If none is provided, it will attempt to grab from configuration.')
52
+                ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')
53
+                ->setHelp('Generates proxy classes for entity classes.');
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/MappingDescribeCommand.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
     protected function configure()
43 43
     {
44 44
         $this->setName('orm:mapping:describe')
45
-             ->addArgument('entityName', InputArgument::REQUIRED, 'Full or partial name of entity')
46
-             ->setDescription('Display information about mapped objects')
47
-             ->setHelp(<<<EOT
45
+                ->addArgument('entityName', InputArgument::REQUIRED, 'Full or partial name of entity')
46
+                ->setDescription('Display information about mapped objects')
47
+                ->setHelp(<<<EOT
48 48
 The %command.full_name% command describes the metadata for the given full or partial entity class name.
49 49
 
50 50
     <info>%command.full_name%</info> My\Namespace\Entity\MyEntity
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     <info>%command.full_name%</info> MyEntity
55 55
 EOT
56
-             );
56
+                );
57 57
     }
58 58
 
59 59
     /**
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
     private function getMappedEntities(EntityManagerInterface $entityManager)
135 135
     {
136 136
         $entityClassNames = $entityManager->getConfiguration()
137
-                                          ->getMetadataDriverImpl()
138
-                                          ->getAllClassNames();
137
+                                            ->getMetadataDriverImpl()
138
+                                            ->getAllClassNames();
139 139
 
140 140
         if ( ! $entityClassNames) {
141 141
             throw new \InvalidArgumentException(
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -165,8 +165,8 @@  discard block
 block discarded – undo
165 165
 
166 166
         $matches = array_filter(
167 167
             $this->getMappedEntities($entityManager),
168
-            function ($mappedEntity) use ($entityName) {
169
-                return preg_match('{' . preg_quote($entityName) . '}', $mappedEntity);
168
+            function($mappedEntity) use ($entityName) {
169
+                return preg_match('{'.preg_quote($entityName).'}', $mappedEntity);
170 170
             }
171 171
         );
172 172
 
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         }
206 206
 
207 207
         if (is_bool($value)) {
208
-            return '<comment>' . ($value ? 'True' : 'False') . '</comment>';
208
+            return '<comment>'.($value ? 'True' : 'False').'</comment>';
209 209
         }
210 210
 
211 211
         if (empty($value)) {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ConvertDoctrine1SchemaCommand.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -100,15 +100,15 @@
 block discarded – undo
100 100
     protected function configure()
101 101
     {
102 102
         $this->setName('orm:convert-d1-schema')
103
-             ->setAliases(['orm:convert:d1-schema'])
104
-             ->setDescription('Converts Doctrine 1.x schema into a Doctrine 2.x schema')
105
-             ->addArgument('from-path', InputArgument::REQUIRED, 'The path of Doctrine 1.X schema information.')
106
-             ->addArgument('to-type', InputArgument::REQUIRED, 'The destination Doctrine 2.X mapping type.')
107
-             ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your Doctrine 2.X mapping information.')
108
-             ->addOption('from', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Optional paths of Doctrine 1.X schema information.', [])
109
-             ->addOption('extend', null, InputOption::VALUE_OPTIONAL, 'Defines a base class to be extended by generated entity classes.')
110
-             ->addOption('num-spaces', null, InputOption::VALUE_OPTIONAL, 'Defines the number of indentation spaces', 4)
111
-             ->setHelp('Converts Doctrine 1.x schema into a Doctrine 2.x schema.');
103
+                ->setAliases(['orm:convert:d1-schema'])
104
+                ->setDescription('Converts Doctrine 1.x schema into a Doctrine 2.x schema')
105
+                ->addArgument('from-path', InputArgument::REQUIRED, 'The path of Doctrine 1.X schema information.')
106
+                ->addArgument('to-type', InputArgument::REQUIRED, 'The destination Doctrine 2.X mapping type.')
107
+                ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your Doctrine 2.X mapping information.')
108
+                ->addOption('from', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Optional paths of Doctrine 1.X schema information.', [])
109
+                ->addOption('extend', null, InputOption::VALUE_OPTIONAL, 'Defines a base class to be extended by generated entity classes.')
110
+                ->addOption('num-spaces', null, InputOption::VALUE_OPTIONAL, 'Defines the number of indentation spaces', 4)
111
+                ->setHelp('Converts Doctrine 1.x schema into a Doctrine 2.x schema.');
112 112
     }
113 113
 
114 114
     /**
Please login to merge, or discard this 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
     protected function execute(InputInterface $input, OutputInterface $output)
121 121
     {
122 122
         $ui = new SymfonyStyle($input, $output);
123
-        $ui->warning('Command ' . $this->getName() . ' is deprecated and will be removed in Doctrine ORM 3.0.');
123
+        $ui->warning('Command '.$this->getName().' is deprecated and will be removed in Doctrine ORM 3.0.');
124 124
 
125 125
         // Process source directories
126 126
         $fromPaths = array_merge([$input->getArgument('from-path')], $input->getOption('from'));
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
             $exporter->setMetadata($metadata);
205 205
             $exporter->export();
206 206
 
207
-            $output->writeln(PHP_EOL . sprintf(
207
+            $output->writeln(PHP_EOL.sprintf(
208 208
                 'Converting Doctrine 1.X schema to "<info>%s</info>" mapping type in "<info>%s</info>"', $toType, $destPath
209 209
             ));
210 210
         } else {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH6699Test.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
     public function testMixedParametersWithZeroNumber() : void
21 21
     {
22 22
         $query = $this->_em->createQueryBuilder()
23
-                           ->select('u')
24
-                           ->from(CmsUser::class, 'u')
25
-                           ->andWhere('u.username = :username')
26
-                           ->andWhere('u.id = ?0')
27
-                           ->getQuery();
23
+                            ->select('u')
24
+                            ->from(CmsUser::class, 'u')
25
+                            ->andWhere('u.username = :username')
26
+                            ->andWhere('u.id = ?0')
27
+                            ->getQuery();
28 28
 
29 29
         $query->setParameter('username', 'bar');
30 30
         $query->setParameter(0, 0);
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
     public function testMixedParametersWithZeroNumberOnQueryBuilder() : void
40 40
     {
41 41
         $query = $this->_em->createQueryBuilder()
42
-                           ->select('u')
43
-                           ->from(CmsUser::class, 'u')
44
-                           ->andWhere('u.username = :username')
45
-                           ->andWhere('u.id = ?0')
46
-                           ->setParameter('username', 'bar')
47
-                           ->setParameter(0, 0)
48
-                           ->getQuery();
42
+                            ->select('u')
43
+                            ->from(CmsUser::class, 'u')
44
+                            ->andWhere('u.username = :username')
45
+                            ->andWhere('u.id = ?0')
46
+                            ->setParameter('username', 'bar')
47
+                            ->setParameter(0, 0)
48
+                            ->getQuery();
49 49
 
50 50
         $query->execute();
51 51
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
                 $this->_em->getClassMetadata(DDC3027Dog::class),
28 28
                 ]
29 29
             );
30
-        } catch(\Exception $e) {
30
+        } catch (\Exception $e) {
31 31
         }
32 32
     }
33 33
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $this->assertEquals('United States of America', $person->address->country->name);
83 83
 
84 84
         // 4. check deleting works
85
-        $personId = $person->id;;
85
+        $personId = $person->id; ;
86 86
         $this->_em->remove($person);
87 87
         $this->_em->flush();
88 88
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $this->_em->flush();
107 107
         $this->_em->clear();
108 108
 
109
-        $dql = "SELECT p FROM " . __NAMESPACE__ . "\DDC93Person p";
109
+        $dql = "SELECT p FROM ".__NAMESPACE__."\DDC93Person p";
110 110
         $persons = $this->_em->createQuery($dql)->getResult();
111 111
 
112 112
         $this->assertCount(3, $persons);
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             $this->assertEquals('United States of America', $person->address->country->name);
120 120
         }
121 121
 
122
-        $dql = "SELECT p FROM " . __NAMESPACE__ . "\DDC93Person p";
122
+        $dql = "SELECT p FROM ".__NAMESPACE__."\DDC93Person p";
123 123
         $persons = $this->_em->createQuery($dql)->getArrayResult();
124 124
 
125 125
         foreach ($persons as $person) {
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         $this->_em->flush();
145 145
 
146 146
         // SELECT
147
-        $selectDql = "SELECT p FROM " . __NAMESPACE__ ."\\DDC93Person p WHERE p.address.city = :city AND p.address.country.name = :country";
147
+        $selectDql = "SELECT p FROM ".__NAMESPACE__."\\DDC93Person p WHERE p.address.city = :city AND p.address.country.name = :country";
148 148
         $loadedPerson = $this->_em->createQuery($selectDql)
149 149
             ->setParameter('city', 'Karlsruhe')
150 150
             ->setParameter('country', 'Germany')
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         );
160 160
 
161 161
         // UPDATE
162
-        $updateDql = "UPDATE " . __NAMESPACE__ . "\\DDC93Person p SET p.address.street = :street, p.address.country.name = :country WHERE p.address.city = :city";
162
+        $updateDql = "UPDATE ".__NAMESPACE__."\\DDC93Person p SET p.address.street = :street, p.address.country.name = :country WHERE p.address.city = :city";
163 163
         $this->_em->createQuery($updateDql)
164 164
             ->setParameter('street', 'Boo')
165 165
             ->setParameter('country', 'DE')
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         $this->assertEquals('DE', $person->address->country->name);
172 172
 
173 173
         // DELETE
174
-        $this->_em->createQuery("DELETE " . __NAMESPACE__ . "\\DDC93Person p WHERE p.address.city = :city AND p.address.country.name = :country")
174
+        $this->_em->createQuery("DELETE ".__NAMESPACE__."\\DDC93Person p WHERE p.address.city = :city AND p.address.country.name = :country")
175 175
             ->setParameter('city', 'Karlsruhe')
176 176
             ->setParameter('country', 'DE')
177 177
             ->execute();
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         $this->_em->clear();
189 189
 
190 190
         // Prove that the entity was persisted correctly.
191
-        $dql = "SELECT p FROM " . __NAMESPACE__ ."\\DDC93Person p WHERE p.name = :name";
191
+        $dql = "SELECT p FROM ".__NAMESPACE__."\\DDC93Person p WHERE p.name = :name";
192 192
 
193 193
         $person = $this->_em->createQuery($dql)
194 194
             ->setParameter('name', 'Karl')
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         // Clear the EM and prove that the embeddable can be the subject of a partial query.
203 203
         $this->_em->clear();
204 204
 
205
-        $dql = "SELECT PARTIAL p.{id,address.city} FROM " . __NAMESPACE__ ."\\DDC93Person p WHERE p.name = :name";
205
+        $dql = "SELECT PARTIAL p.{id,address.city} FROM ".__NAMESPACE__."\\DDC93Person p WHERE p.name = :name";
206 206
 
207 207
         $person = $this->_em->createQuery($dql)
208 208
             ->setParameter('name', 'Karl')
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
         // Clear the EM and prove that the embeddable can be the subject of a partial query regardless of attributes positions.
219 219
         $this->_em->clear();
220 220
 
221
-        $dql = "SELECT PARTIAL p.{address.city, id} FROM " . __NAMESPACE__ ."\\DDC93Person p WHERE p.name = :name";
221
+        $dql = "SELECT PARTIAL p.{address.city, id} FROM ".__NAMESPACE__."\\DDC93Person p WHERE p.name = :name";
222 222
 
223 223
         $person = $this->_em->createQuery($dql)
224 224
             ->setParameter('name', 'Karl')
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
         $this->expectException(QueryException::class);
238 238
         $this->expectExceptionMessage('no field or association named address.asdfasdf');
239 239
 
240
-        $this->_em->createQuery("SELECT p FROM " . __NAMESPACE__ . "\\DDC93Person p WHERE p.address.asdfasdf IS NULL")
240
+        $this->_em->createQuery("SELECT p FROM ".__NAMESPACE__."\\DDC93Person p WHERE p.address.asdfasdf IS NULL")
241 241
             ->execute();
242 242
     }
243 243
 
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
         $this->expectException(QueryException::class);
247 247
         $this->expectExceptionMessage("no mapped field named 'address.asdfasdf'");
248 248
 
249
-        $this->_em->createQuery("SELECT PARTIAL p.{id,address.asdfasdf} FROM " . __NAMESPACE__ . "\\DDC93Person p")
249
+        $this->_em->createQuery("SELECT PARTIAL p.{id,address.asdfasdf} FROM ".__NAMESPACE__."\\DDC93Person p")
250 250
             ->execute();
251 251
     }
252 252
 
@@ -308,15 +308,15 @@  discard block
 block discarded – undo
308 308
         $this->expectException(MappingException::class);
309 309
         $this->expectExceptionMessage(
310 310
             sprintf(
311
-                'Infinite nesting detected for embedded property %s::nested. ' .
311
+                'Infinite nesting detected for embedded property %s::nested. '.
312 312
                 'You cannot embed an embeddable from the same type inside an embeddable.',
313
-                __NAMESPACE__ . '\\' . $declaredEmbeddableClassName
313
+                __NAMESPACE__.'\\'.$declaredEmbeddableClassName
314 314
             )
315 315
         );
316 316
 
317 317
         $this->_schemaTool->createSchema(
318 318
             [
319
-            $this->_em->getClassMetadata(__NAMESPACE__ . '\\' . $embeddableClassName),
319
+            $this->_em->getClassMetadata(__NAMESPACE__.'\\'.$embeddableClassName),
320 320
             ]
321 321
         );
322 322
     }
Please login to merge, or discard this patch.