8000 [DoctrineBundle] fixed CS, removed some use statements · lacyrhoades/symfony@8b244f4 · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit 8b244f4

Browse files
committed
[DoctrineBundle] fixed CS, removed some use statements
1 parent aa29aff commit 8b244f4

7 files changed

+7
-23
lines changed

src/Symfony/Bundle/DoctrineBundle/Command/CreateDatabaseDoctrineCommand.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@
1111

1212
namespace Symfony\Bundle\DoctrineBundle\Command;
1313

14-
use Symfony\Component\Console\Input\InputArgument;
1514
use Symfony\Component\Console\Input\InputOption;
1615
use Symfony\Component\Console\Input\InputInterface;
1716
use Symfony\Component\Console\Output\OutputInterface;
18-
use Symfony\Component\Console\Output\Output;
19-
use Symfony\Component\HttpKernel\Util\Filesystem;
20-
use Doctrine\DBAL\Connection;
17+
use Doctrine\DBAL\DriverManager;
2118

2219
/**
2320
* Database tool allows you to easily drop and create your configured databases.
@@ -50,11 +47,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
5047
$connection = $this->getDoctrineConnection($input->getOption('connection'));
5148

5249
$params = $connection->getParams();
53-
$name = isset($params['path']) ? $params['path']:$params['dbname'];
50+
$name = isset($params['path']) ? $params['path'] : $params['dbname'];
5451

5552
unset($params['dbname']);
5653

57-
$tmpConnection = \Doctrine\DBAL\DriverManager::getConnection($params);
54+
$tmpConnection = DriverManager::getConnection($params);
5855

5956
try {
6057
$tmpConnection->getSchemaManager()->createDatabase($name);
@@ -66,4 +63,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
6663

6764
$tmpConnection->close();
6865
}
69-
}
66+
}

src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@
1111

1212
namespace Symfony\Bundle\DoctrineBundle\Command;
1313

14-
use Symfony\Component\Console\Input\InputArgument;
1514
use Symfony\Component\Console\Input\InputOption;
1615
use Symfony\Component\Console\Input\InputInterface;
1716
use Symfony\Component\Console\Output\OutputInterface;
18-
use Symfony\Component\Console\Output\Output;
19-
use Symfony\Component\HttpKernel\Util\Filesystem;
20-
use Doctrine\DBAL\Connection;
2117

2218
/**
2319
* Database tool allows you to easily drop and create your configured databases.
@@ -78,4 +74,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
7874
$output->writeln('<error>All data will be lost!</error>');
7975
}
8076
}
81-
}
77+
}

src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Symfony\Component\Console\Input\InputOption;
1616
use Symfony\Component\Console\Input\InputInterface;
1717
use Symfony\Component\Console\Output\OutputInterface;
18-
use Symfony\Component\Console\Output\Output;
1918

2019
/**
2120
* Generate entity classes from mapping information

src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
use Symfony\Component\Console\Input\InputOption;
1616
use Symfony\Component\Console\Input\InputInterface;
1717
use Symfony\Component\Console\Output\OutputInterface;
18-
use Symfony\Component\Console\Output\Output;
1918
use Doctrine\ORM\Tools\Export\ClassMetadataExporter;
20-
use Doctrine\ORM\Tools\EntityGenerator;
2119
use Doctrine\ORM\Mapping\ClassMetadataInfo;
2220

2321
/**

src/Symfony/Bundle/DoctrineBundle/Command/GenerateRepositoriesDoctrineCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Symfony\Component\Console\Input\InputOption;
1616
use Symfony\Component\Console\Input\InputInterface;
1717
use Symfony\Component\Console\Output\OutputInterface;
18-
use Symfony\Component\Console\Output\Output;
1918
use Doctrine\ORM\Tools\EntityRepositoryGenerator;
2019

2120
/**
@@ -72,4 +71,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
7271
throw new \RuntimeException(sprintf('Bundle "%s" does not contain any mapped entities.', $bundleName));
7372
}
7473
}
75-
}
74+
}

src/Symfony/Bundle/DoctrineBundle/Command/ImportMappingDoctrineCommand.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
use Symfony\Component\Console\Input\InputOption;
1616
use Symfony\Component\Console\Input\InputInterface;
1717
use Symfony\Component\Console\Output\OutputInterface;
18-
use Symfony\Component\Console\Output\Output;
19-
use Doctrine\ORM\Tools\Console\Command\ConvertMappingCommand;
20-
use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper;
21-
use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;
2218
use Doctrine\ORM\Mapping\Driver\DatabaseDriver;
2319
use Doctrine\ORM\Tools\DisconnectedClassMetadataFactory;
2420
use Doctrine\ORM\Tools\Export\ClassMetadataExporter;

src/Symfony/Bundle/DoctrineBundle/Command/InfoDoctrineCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Bundle\DoctrineBundle\Command;
1313

1414
use Doctrine\ORM\Mapping\MappingException;
15-
use Symfony\Component\Console\Input\InputArgument;
1615
use Symfony\Component\Console\Input\InputOption;
1716
use Symfony\Component\Console\Input\InputInterface;
1817
use Symfony\Component\Console\Output\OutputInterface;
@@ -76,4 +75,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
7675
}
7776
}
7877
}
79-
}
78+
}

0 commit comments

Comments
 (0)
0