Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Mar 11, 2024
1 parent 6458e87 commit 94bb945
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/DependencyFactory.php
Expand Up @@ -145,7 +145,7 @@ public function getConfiguration(): Configuration
{
if ($this->configuration === null) {
$this->configuration = $this->configurationLoader->getConfiguration();
$this->frozen = true;
$this->frozen = true;
}

return $this->configuration;
Expand All @@ -157,7 +157,7 @@ public function getConnection(): Connection
$this->connection = $this->hasEntityManager()
? $this->getEntityManager()->getConnection()
: $this->connectionLoader->getConnection($this->getConfiguration()->getConnectionName());
$this->frozen = true;
$this->frozen = true;
}

return $this->connection;
Expand All @@ -170,7 +170,7 @@ public function getEntityManager(): EntityManagerInterface
throw MissingDependency::noEntityManager();
}

$this->em = $this->emLoader->getEntityManager($this->getConfiguration()->getEntityManagerName());
$this->em = $this->emLoader->getEntityManager($this->getConfiguration()->getEntityManagerName());
$this->frozen = true;
}

Expand Down
2 changes: 2 additions & 0 deletions src/Tools/Console/Command/DoctrineCommand.php
Expand Up @@ -18,6 +18,7 @@
use Symfony\Component\Console\Style\StyleInterface;
use Symfony\Component\Console\Style\SymfonyStyle;

use function assert;
use function is_string;

/**
Expand Down Expand Up @@ -88,6 +89,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
$configurationLoader = new ConfigurationFileWithFallback($configurationParameter);
$this->dependencyFactory->setConfigurationLoader($configurationLoader);
}

$dependencyFactory = $this->dependencyFactory;

$this->setNamedEmOrConnection($input);
Expand Down
2 changes: 1 addition & 1 deletion src/Version/SortedMigrationPlanCalculator.php
Expand Up @@ -45,7 +45,7 @@ public function getPlanForVersions(array $versions, string $direction): Migratio
$availableMigrations = array_filter(
$migrationsToCheck,
// in_array third parameter is intentionally false to force object to string casting
static fn (AvailableMigration $availableMigration): bool => in_array($availableMigration->getVersion(), $versions, false)
static fn (AvailableMigration $availableMigration): bool => in_array($availableMigration->getVersion(), $versions, false),
);

$planItems = array_map(static fn (AvailableMigration $availableMigration): MigrationPlan => new MigrationPlan($availableMigration->getVersion(), $availableMigration->getMigration(), $direction), $availableMigrations);
Expand Down

0 comments on commit 94bb945

Please sign in to comment.