Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change of the visibility from "public" to "protected" on Command folder WIP #923

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected function configure() : void
/**
* @throws InvalidOptionUsage
*/
public function execute(
protected function execute(
InputInterface $input,
OutputInterface $output
) : ?int {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function configure() : void
/**
* @throws SchemaDumpRequiresNoMigrations
*/
public function execute(
protected function execute(
InputInterface $input,
OutputInterface $output
) : ?int {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ protected function configure() : void
parent::configure();
}

public function execute(InputInterface $input, OutputInterface $output) : ?int
protected function execute(InputInterface $input, OutputInterface $output) : ?int
{
$versions = $input->getArgument('versions');
$path = $input->getOption('write-sql');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected function configure() : void
parent::configure();
}

public function execute(InputInterface $input, OutputInterface $output) : ?int
protected function execute(InputInterface $input, OutputInterface $output) : ?int
{
$configuration = $this->getDependencyFactory()->getConfiguration();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function configure() : void
parent::configure();
}

public function execute(InputInterface $input, OutputInterface $output) : ?int
protected function execute(InputInterface $input, OutputInterface $output) : ?int
{
$aliasResolver = $this->getDependencyFactory()->getVersionAliasResolver();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function configure() : void
parent::configure();
}

public function execute(InputInterface $input, OutputInterface $output) : int
protected function execute(InputInterface $input, OutputInterface $output) : int
{
$versions = $this->getSortedVersions(
$this->getDependencyFactory()->getMigrationRepository()->getMigrations(), // available migrations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected function configure() : void
parent::configure();
}

public function execute(InputInterface $input, OutputInterface $output) : ?int
protected function execute(InputInterface $input, OutputInterface $output) : ?int
{
$this->outputHeader($output);
$allowNoMigration = $input->getOption('allow-no-migration');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected function configure() : void
);
}

public function execute(InputInterface $input, OutputInterface $output) : ?int
protected function execute(InputInterface $input, OutputInterface $output) : ?int
{
$question = 'WARNING! You are about to execute a database migration that could result in schema changes and data loss. Are you sure you wish to continue? (y/n)';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function configure() : void
parent::configure();
}

public function execute(InputInterface $input, OutputInterface $output) : ?int
protected function execute(InputInterface $input, OutputInterface $output) : ?int
{
$storage = $this->getDependencyFactory()->getMetadataStorage();
$migrationRepo = $this->getDependencyFactory()->getMigrationRepository();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function configure() : void
);
}

public function execute(
protected function execute(
InputInterface $input,
OutputInterface $output
) : int {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function configure() : void
parent::configure();
}

public function execute(InputInterface $input, OutputInterface $output) : ?int
protected function execute(InputInterface $input, OutputInterface $output) : ?int
{
$statusCalculator = $this->getDependencyFactory()->getMigrationStatusCalculator();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected function configure() : void
/**
* @throws InvalidOptionUsage
*/
public function execute(InputInterface $input, OutputInterface $output) : ?int
protected function execute(InputInterface $input, OutputInterface $output) : ?int
{
if ($input->getOption('add') === false && $input->getOption('delete') === false) {
throw InvalidOptionUsage::new('You must specify whether you want to --add or --delete the specified version.');
Expand Down