From 90efaeec42043ae85d68be8291dc7836a2fc2456 Mon Sep 17 00:00:00 2001 From: encoder64 Date: Sun, 27 Jul 2014 14:54:35 +0300 Subject: [PATCH] Code Style fixes --- .../ORM/Tools/Console/Command/GenerateRepositoriesCommand.php | 4 ++-- lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/Console/Command/GenerateRepositoriesCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/GenerateRepositoriesCommand.php index 917f7ac76..c6c139914 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/GenerateRepositoriesCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/GenerateRepositoriesCommand.php @@ -93,9 +93,9 @@ EOT if (count($metadatas)) { $numRepositories = 0; $generator = new EntityRepositoryGenerator(); - + $generator->setDefaultRepositoryName($repositoryName); - + foreach ($metadatas as $metadata) { if ($metadata->customRepositoryClassName) { $output->writeln( diff --git a/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php b/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php index 24c30568c..a5056a452 100644 --- a/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php @@ -90,7 +90,7 @@ class extends $repositoryName = $this->getDefaultRepositoryName(); if (substr($repositoryName, 0, 1) != '\\') { - $repositoryName = '\\'.$repositoryName; + $repositoryName = '\\' . $repositoryName; } return $repositoryName;