Passed
Pull Request — master (#6655)
by
unknown
20:05
created
lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
             $entityGenerator->setRegenerateEntityIfExists($input->getOption('regenerate-entities'));
147 147
             $entityGenerator->setUpdateEntityIfExists($input->getOption('update-entities'));
148 148
             $entityGenerator->setNumSpaces($input->getOption('num-spaces'));
149
-            $entityGenerator->setBackupExisting(!$input->getOption('no-backup'));
149
+            $entityGenerator->setBackupExisting( ! $input->getOption('no-backup'));
150 150
 
151 151
             if (($extend = $input->getOption('extend')) !== null) {
152 152
                 $entityGenerator->setClassToExtend($extend);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/GenerateProxiesCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
             );
102 102
         }
103 103
 
104
-        if ( count($metadatas)) {
104
+        if (count($metadatas)) {
105 105
             foreach ($metadatas as $metadata) {
106 106
                 $ui->text(
107 107
                     sprintf('Processing entity "<info>%s</info>"', $metadata->name)
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,7 +30,7 @@  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
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
         $metadataDriver->addPaths(
41 41
             [
42
-            __DIR__ . '/../../../../Models/DDC3231/'
42
+            __DIR__.'/../../../../Models/DDC3231/'
43 43
             ]
44 44
         );
45 45
 
@@ -86,13 +86,13 @@  discard block
 block discarded – undo
86 86
         $this->generateRepositories('DDC3231User1');
87 87
 
88 88
         $cname = 'Doctrine\Tests\Models\DDC3231\DDC3231User1Repository';
89
-        $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname) . '.php';
89
+        $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname).'.php';
90 90
 
91
-        self::assertFileExists($this->path . DIRECTORY_SEPARATOR . $fname);
92
-        self::assertFileExists($this->path . DIRECTORY_SEPARATOR . 'DDC3231User1NoNamespaceRepository.php');
91
+        self::assertFileExists($this->path.DIRECTORY_SEPARATOR.$fname);
92
+        self::assertFileExists($this->path.DIRECTORY_SEPARATOR.'DDC3231User1NoNamespaceRepository.php');
93 93
 
94
-        require $this->path . DIRECTORY_SEPARATOR . $fname;
95
-        require $this->path . DIRECTORY_SEPARATOR . 'DDC3231User1NoNamespaceRepository.php';
94
+        require $this->path.DIRECTORY_SEPARATOR.$fname;
95
+        require $this->path.DIRECTORY_SEPARATOR.'DDC3231User1NoNamespaceRepository.php';
96 96
 
97 97
         self::assertTrue(class_exists($cname));
98 98
         self::assertTrue(class_exists('DDC3231User1NoNamespaceRepository'));
@@ -109,13 +109,13 @@  discard block
 block discarded – undo
109 109
         $this->generateRepositories('DDC3231User2', DDC3231EntityRepository::class);
110 110
 
111 111
         $cname = 'Doctrine\Tests\Models\DDC3231\DDC3231User2Repository';
112
-        $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname) . '.php';
112
+        $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname).'.php';
113 113
 
114
-        self::assertFileExists($this->path . DIRECTORY_SEPARATOR . $fname);
115
-        self::assertFileExists($this->path . DIRECTORY_SEPARATOR . 'DDC3231User2NoNamespaceRepository.php');
114
+        self::assertFileExists($this->path.DIRECTORY_SEPARATOR.$fname);
115
+        self::assertFileExists($this->path.DIRECTORY_SEPARATOR.'DDC3231User2NoNamespaceRepository.php');
116 116
 
117
-        require $this->path . DIRECTORY_SEPARATOR . $fname;
118
-        require $this->path . DIRECTORY_SEPARATOR . 'DDC3231User2NoNamespaceRepository.php';
117
+        require $this->path.DIRECTORY_SEPARATOR.$fname;
118
+        require $this->path.DIRECTORY_SEPARATOR.'DDC3231User2NoNamespaceRepository.php';
119 119
 
120 120
         self::assertTrue(class_exists($cname));
121 121
         self::assertTrue(class_exists('DDC3231User2NoNamespaceRepository'));
Please login to merge, or discard this patch.