Completed
Push — master ( ba3223...b47a39 )
by Luís
17s
created
tests/Doctrine/Tests/ORM/Tools/Console/Command/RunDqlCommandTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             $this->tester->execute(
63 63
                 [
64 64
                     'command' => $this->command->getName(),
65
-                    'dql'     => 'SELECT e FROM ' . DateTimeModel::class . ' e',
65
+                    'dql'     => 'SELECT e FROM '.DateTimeModel::class.' e',
66 66
                 ]
67 67
             )
68 68
         );
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             $this->tester->execute(
81 81
                 [
82 82
                     'command'    => $this->command->getName(),
83
-                    'dql'        => 'SELECT e FROM ' . DateTimeModel::class . ' e',
83
+                    'dql'        => 'SELECT e FROM '.DateTimeModel::class.' e',
84 84
                     '--show-sql' => 'true',
85 85
                 ]
86 86
             )
Please login to merge, or discard this patch.
Tests/ORM/Tools/Console/Command/GenerateRepositoriesCommandTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
     {
31 31
         parent::setUp();
32 32
 
33
-        $this->path = \sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid('doctrine_');
33
+        $this->path = \sys_get_temp_dir().DIRECTORY_SEPARATOR.uniqid('doctrine_');
34 34
 
35 35
         \mkdir($this->path);
36 36
 
37 37
         $metadataDriver = $this->_em->getConfiguration()->getMetadataDriverImpl();
38
-        $metadataDriver->addPaths([__DIR__ . '/../../../../Models/DDC3231/']);
38
+        $metadataDriver->addPaths([__DIR__.'/../../../../Models/DDC3231/']);
39 39
 
40 40
         $this->application = new Application();
41 41
         $this->application->setHelperSet(new HelperSet(['em' => new EntityManagerHelper($this->_em)]));
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
         $this->generateRepositories('DDC3231User1');
74 74
 
75 75
         $cname = 'Doctrine\Tests\Models\DDC3231\DDC3231User1Repository';
76
-        $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname) . '.php';
76
+        $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname).'.php';
77 77
 
78
-        self::assertFileExists($this->path . DIRECTORY_SEPARATOR . $fname);
79
-        self::assertFileExists($this->path . DIRECTORY_SEPARATOR . 'DDC3231User1NoNamespaceRepository.php');
78
+        self::assertFileExists($this->path.DIRECTORY_SEPARATOR.$fname);
79
+        self::assertFileExists($this->path.DIRECTORY_SEPARATOR.'DDC3231User1NoNamespaceRepository.php');
80 80
 
81
-        require $this->path . DIRECTORY_SEPARATOR . $fname;
82
-        require $this->path . DIRECTORY_SEPARATOR . 'DDC3231User1NoNamespaceRepository.php';
81
+        require $this->path.DIRECTORY_SEPARATOR.$fname;
82
+        require $this->path.DIRECTORY_SEPARATOR.'DDC3231User1NoNamespaceRepository.php';
83 83
 
84 84
         self::assertTrue(class_exists($cname));
85 85
         self::assertTrue(class_exists('DDC3231User1NoNamespaceRepository'));
@@ -96,13 +96,13 @@  discard block
 block discarded – undo
96 96
         $this->generateRepositories('DDC3231User2', DDC3231EntityRepository::class);
97 97
 
98 98
         $cname = 'Doctrine\Tests\Models\DDC3231\DDC3231User2Repository';
99
-        $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname) . '.php';
99
+        $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname).'.php';
100 100
 
101
-        self::assertFileExists($this->path . DIRECTORY_SEPARATOR . $fname);
102
-        self::assertFileExists($this->path . DIRECTORY_SEPARATOR . 'DDC3231User2NoNamespaceRepository.php');
101
+        self::assertFileExists($this->path.DIRECTORY_SEPARATOR.$fname);
102
+        self::assertFileExists($this->path.DIRECTORY_SEPARATOR.'DDC3231User2NoNamespaceRepository.php');
103 103
 
104
-        require $this->path . DIRECTORY_SEPARATOR . $fname;
105
-        require $this->path . DIRECTORY_SEPARATOR . 'DDC3231User2NoNamespaceRepository.php';
104
+        require $this->path.DIRECTORY_SEPARATOR.$fname;
105
+        require $this->path.DIRECTORY_SEPARATOR.'DDC3231User2NoNamespaceRepository.php';
106 106
 
107 107
         self::assertTrue(class_exists($cname));
108 108
         self::assertTrue(class_exists('DDC3231User2NoNamespaceRepository'));
Please login to merge, or discard this patch.
Doctrine/ORM/Tools/Console/Command/ClearCache/CollectionRegionCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
         }
98 98
 
99 99
         if ($input->getOption('flush')) {
100
-            $collectionRegion  = $cache->getCollectionCacheRegion($ownerClass, $assoc);
100
+            $collectionRegion = $cache->getCollectionCacheRegion($ownerClass, $assoc);
101 101
 
102 102
             if ( ! $collectionRegion instanceof DefaultRegion) {
103 103
                 throw new \InvalidArgumentException(sprintf(
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
         $entityGenerator->setRegenerateEntityIfExists($input->getOption('regenerate-entities'));
123 123
         $entityGenerator->setUpdateEntityIfExists($input->getOption('update-entities'));
124 124
         $entityGenerator->setNumSpaces($input->getOption('num-spaces'));
125
-        $entityGenerator->setBackupExisting(!$input->getOption('no-backup'));
125
+        $entityGenerator->setBackupExisting( ! $input->getOption('no-backup'));
126 126
 
127 127
         if (($extend = $input->getOption('extend')) !== null) {
128 128
             $entityGenerator->setClassToExtend($extend);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/MappingDescribeCommand.php 1 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.