From d9015a8c94bfd71fe484618a06d276701d3bf9ff Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 5 Oct 2020 15:12:57 +0200 Subject: Format code to a single space around binary operators Signed-off-by: Christoph Wurst --- core/Command/Db/ConvertType.php | 12 ++++++------ core/Command/Db/Migrations/StatusCommand.php | 26 +++++++++++++------------- 2 files changed, 19 insertions(+), 19 deletions(-) (limited to 'core/Command/Db') diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index 05bdef95bcb..d89d57ff601 100644 --- a/core/Command/Db/ConvertType.php +++ b/core/Command/Db/ConvertType.php @@ -312,7 +312,7 @@ class ConvertType extends Command implements CompletionAwareInterface { $count = $result->fetchColumn(); $result->closeCursor(); - $numChunks = ceil($count/$chunkSize); + $numChunks = ceil($count / $chunkSize); if ($numChunks > 1) { $output->writeln('chunked query, ' . $numChunks . ' chunks'); } @@ -432,11 +432,11 @@ class ConvertType extends Command implements CompletionAwareInterface { } $this->config->setSystemValues([ - 'dbtype' => $type, - 'dbname' => $dbName, - 'dbhost' => $dbHost, - 'dbuser' => $username, - 'dbpassword' => $password, + 'dbtype' => $type, + 'dbname' => $dbName, + 'dbhost' => $dbHost, + 'dbuser' => $username, + 'dbpassword' => $password, ]); } diff --git a/core/Command/Db/Migrations/StatusCommand.php b/core/Command/Db/Migrations/StatusCommand.php index dc92dfb1f50..2d6c92f0f36 100644 --- a/core/Command/Db/Migrations/StatusCommand.php +++ b/core/Command/Db/Migrations/StatusCommand.php @@ -107,19 +107,19 @@ class StatusCommand extends Command implements CompletionAwareInterface { $pending = $ms->describeMigrationStep('lastest'); $infos = [ - 'App' => $ms->getApp(), - 'Version Table Name' => $ms->getMigrationsTableName(), - 'Migrations Namespace' => $ms->getMigrationsNamespace(), - 'Migrations Directory' => $ms->getMigrationsDirectory(), - 'Previous Version' => $this->getFormattedVersionAlias($ms, 'prev'), - 'Current Version' => $this->getFormattedVersionAlias($ms, 'current'), - 'Next Version' => $this->getFormattedVersionAlias($ms, 'next'), - 'Latest Version' => $this->getFormattedVersionAlias($ms, 'latest'), - 'Executed Migrations' => count($executedMigrations), - 'Executed Unavailable Migrations' => $numExecutedUnavailableMigrations, - 'Available Migrations' => count($availableMigrations), - 'New Migrations' => $numNewMigrations, - 'Pending Migrations' => count($pending) ? $pending : 'None' + 'App' => $ms->getApp(), + 'Version Table Name' => $ms->getMigrationsTableName(), + 'Migrations Namespace' => $ms->getMigrationsNamespace(), + 'Migrations Directory' => $ms->getMigrationsDirectory(), + 'Previous Version' => $this->getFormattedVersionAlias($ms, 'prev'), + 'Current Version' => $this->getFormattedVersionAlias($ms, 'current'), + 'Next Version' => $this->getFormattedVersionAlias($ms, 'next'), + 'Latest Version' => $this->getFormattedVersionAlias($ms, 'latest'), + 'Executed Migrations' => count($executedMigrations), + 'Executed Unavailable Migrations' => $numExecutedUnavailableMigrations, + 'Available Migrations' => count($availableMigrations), + 'New Migrations' => $numNewMigrations, + 'Pending Migrations' => count($pending) ? $pending : 'None' ]; return $infos; -- cgit v1.2.3