@@ -62,7 +62,7 @@ discard block |
||
| 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 |
||
| 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 | ) |
@@ -30,12 +30,12 @@ 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 | |
| 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 |
||
| 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 |
||
| 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')); |
@@ -97,7 +97,7 @@ |
||
| 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( |
@@ -122,7 +122,7 @@ |
||
| 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); |
@@ -165,8 +165,8 @@ discard block |
||
| 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 |
||
| 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)) { |