Skip to content

Commit

Permalink
TASK: improve codestyle in NodeMigrationCommandController
Browse files Browse the repository at this point in the history
  • Loading branch information
crydotsnake committed Sep 9, 2023
1 parent 3a209fb commit 795979e
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use Neos\ContentRepository\NodeMigration\Command\MigrationConfiguration;
use Neos\Flow\Annotations as Flow;
use Neos\Flow\Cli\Exception\StopCommandException;
use Neos\Flow\ObjectManagement\ObjectManagerInterface;
use Neos\Flow\Package\Exception\UnknownPackageException;
use Neos\Flow\Package\PackageManager;
use Neos\Utility\Exception\FilesException;
Expand All @@ -39,7 +38,6 @@ class NodeMigrationCommandController extends CommandController
public function __construct(
private readonly MigrationFactory $migrationFactory,
private readonly ContentRepositoryRegistry $contentRepositoryRegistry,
private readonly ObjectManagerInterface $container,
private readonly PackageManager $packageManager,
private readonly NodeMigrationGeneratorService $nodeMigrationGeneratorService
)
Expand All @@ -52,13 +50,12 @@ public function __construct(
*
* @param string $version The version of the migration configuration you want to use.
* @param string $workspace The workspace where the migration should be applied; by default "live"
* @param boolean $force Confirm application of this migration,
* only needed if the given migration contains any warnings.
* @param boolean $force Confirm application of this migration, only needed if the given migration contains any warnings.
* @return void
* @throws \Neos\Flow\Cli\Exception\StopCommandException
* @see neos.contentrepository.migration:node:migrationstatus
* @throws StopCommandException
* @see neos.contentrepositoryregistry:nodemigration:migrate
*/
public function migrateCommand(string $version, $workspace = 'live', bool $force = false, string $contentRepositoryIdentifier = 'default')
public function migrateCommand(string $version, string $workspace = 'live', bool $force = false, string $contentRepositoryIdentifier = 'default'): void
{
$contentRepositoryId = ContentRepositoryId::fromString($contentRepositoryIdentifier);

Expand Down Expand Up @@ -123,7 +120,7 @@ public function migrationCreateCommand(string $packageKey): void
* @param MigrationConfiguration $migrationConfiguration
* @return void
*/
protected function outputCommentsAndWarnings(MigrationConfiguration $migrationConfiguration)
protected function outputCommentsAndWarnings(MigrationConfiguration $migrationConfiguration): void
{
if ($migrationConfiguration->hasComments()) {
$this->outputLine();
Expand Down

0 comments on commit 795979e

Please sign in to comment.