Skip to content

Commit ee078f4

Browse files
author
Alexandre Guidet
committed
fix other issues from sensiolab analyser
1 parent 9f1367a commit ee078f4

13 files changed

Lines changed: 15 additions & 22 deletions

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
environments
22
clean.sh
3-
.project
4-
.buildpath
5-
.settings
6-
.idea
73
tests/test.sqlite
84
vendor
95
/bin/phpunit

Migrate/Command/AbstractComand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ public function getEnvironmentDir()
4949
return $this->environmentDir;
5050
}
5151

52-
}
52+
}

Migrate/Command/AbstractEnvCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,4 +304,4 @@ protected function filterMigrationsToExecute(InputInterface $input, OutputInterf
304304

305305
return $toExecute;
306306
}
307-
}
307+
}

Migrate/Command/AddEnvCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
8787

8888
file_put_contents($envConfigFile, $confTemplate);
8989
}
90-
}
90+
}

Migrate/Command/CreateCommand.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,18 @@
88
namespace Migrate\Command;
99

1010
use Cocur\Slugify\Slugify;
11-
use Symfony\Component\Console\Helper\QuestionHelper;
1211
use Symfony\Component\Console\Input\InputInterface;
1312
use Symfony\Component\Console\Output\OutputInterface;
1413
use Symfony\Component\Console\Question\Question;
1514

16-
class CreateCommand extends AbstractEnvCommand {
15+
class CreateCommand extends AbstractEnvCommand
16+
{
1717

1818
protected function configure()
1919
{
2020
$this
2121
->setName('migrate:create')
22-
->setDescription('Create a SQL migration')
23-
;
22+
->setDescription('Create a SQL migration');
2423
}
2524

2625
protected function execute(InputInterface $input, OutputInterface $output)
@@ -53,4 +52,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
5352
}
5453
}
5554

56-
}
55+
}

Migrate/Command/DownCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111
use Symfony\Component\Console\Helper\ProgressBar;
12-
use Symfony\Component\Console\Helper\QuestionHelper;
1312
use Symfony\Component\Console\Input\InputArgument;
1413
use Symfony\Component\Console\Input\InputInterface;
1514
use Symfony\Component\Console\Input\InputOption;
@@ -92,4 +91,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
9291
$output->writeln("<error>Rollback aborted</error>");
9392
}
9493
}
95-
}
94+
}

Migrate/Command/InitCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
4545
$output->writeln("changelog table ($changelog) successfully created");
4646
}
4747

48-
}
48+
}

Migrate/Command/StatusCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
namespace Migrate\Command;
1010

1111

12-
use Migrate\Migration;
1312
use Symfony\Component\Console\Helper\Table;
1413
use Symfony\Component\Console\Input\InputArgument;
1514
use Symfony\Component\Console\Input\InputInterface;
@@ -47,4 +46,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
4746

4847
$table->render();
4948
}
50-
}
49+
}

Migrate/Command/UpCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
7878
$output->writeln("");
7979
}
8080
}
81-
}
81+
}

Migrate/Enum/Directory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ public static function getMigrationsPath()
2222
{
2323
return self::$appDirectory . '/migrations';
2424
}
25-
}
25+
}

0 commit comments

Comments
 (0)