@@ -146,7 +146,7 @@ |
||
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); |
@@ -101,7 +101,7 @@ |
||
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) |
@@ -30,7 +30,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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')); |