Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Nov 23, 2018
1 parent 31bd781 commit d1bdb4e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Command/DoctrineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
*/
abstract class DoctrineCommand extends Command
{
/**
* @var ManagerRegistry
*/
protected $doctrine;

public function __construct(ManagerRegistry $doctrine)
Expand Down
3 changes: 3 additions & 0 deletions Command/ImportMappingDoctrineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
*/
class ImportMappingDoctrineCommand extends DoctrineCommand
{
/**
* @var string[]
*/
private $bundles;

/**
Expand Down
2 changes: 1 addition & 1 deletion Repository/ServiceEntityRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(ManagerRegistry $registry, $entityClass)
{
$manager = $registry->getManagerForClass($entityClass);

if (null === $manager) {
if ($manager === null) {
throw new LogicException(sprintf(
'Could not find the entity manager for class "%s". Check your Doctrine configuration to make sure it is configured to load this entity’s metadata.',
$entityClass
Expand Down
2 changes: 1 addition & 1 deletion Tests/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testContainer()
$this->assertFalse($container->has('doctrine.dbal.default_connection.events.mysqlsessioninit'));

if (interface_exists('Symfony\Component\PropertyInfo\PropertyInfoExtractorInterface') && class_exists('Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor')) {
if (!interface_exists(PropertyInitializableExtractorInterface::class)) {
if (! interface_exists(PropertyInitializableExtractorInterface::class)) {
$this->assertInstanceOf('Doctrine\Common\Persistence\Mapping\ClassMetadataFactory', $container->get('doctrine.orm.default_entity_manager.metadata_factory'));
}
$this->assertInstanceOf('Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor', $container->get('doctrine.orm.default_entity_manager.property_info_extractor'));
Expand Down

0 comments on commit d1bdb4e

Please sign in to comment.