diff --git a/.gitignore b/.gitignore index 12c0626..b5a7f42 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ vendor/ # Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file # You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file composer.lock +.php_cs.cache diff --git a/.php_cs.dist b/.php_cs.dist new file mode 100644 index 0000000..7e030f1 --- /dev/null +++ b/.php_cs.dist @@ -0,0 +1,17 @@ +in(__DIR__) +; + +$config = PhpCsFixer\Config::create() + ->setRules([ + '@PSR2' => true, + '@Symfony' => true, + 'array_syntax' => ['syntax' => 'short'], + 'concat_space' => ['spacing' => 'one'], + ]) + ->setFinder($finder) +; + +return $config; diff --git a/Command/CommandHelper.php b/Command/CommandHelper.php index f2ad427..5ef27a8 100644 --- a/Command/CommandHelper.php +++ b/Command/CommandHelper.php @@ -23,7 +23,7 @@ final class CommandHelper { /** - * configureMigrations + * configureMigrations. * * @param ContainerInterface $container * @param Configuration $configuration @@ -63,12 +63,12 @@ public static function setApplicationDocumentManager(Application $application, $ } /** - * injectContainerToMigrations + * injectContainerToMigrations. * * Injects the container to migrations aware of it. * * @param ContainerInterface $container - * @param array $versions + * @param array $versions */ private static function injectContainerToMigrations(ContainerInterface $container, array $versions) { diff --git a/README.md b/README.md index 7bc39dd..0ae6683 100644 --- a/README.md +++ b/README.md @@ -41,10 +41,10 @@ Finally, be sure to enable the bundle in AppKernel.php by including the followin // app/AppKernel.php public function registerBundles() { - $bundles = array( + $bundles = [ //... new AntiMattr\Bundle\MongoDBMigrationsBundle\MongoDBMigrationsBundle(), - ); + ]; } ``` diff --git a/Tests/bootstrap.php b/Tests/bootstrap.php index b0705c6..78f48d4 100644 --- a/Tests/bootstrap.php +++ b/Tests/bootstrap.php @@ -5,7 +5,6 @@ $class = 'PHPUnit\Framework\TestCase'; if (!class_exists($class)) { - abstract class TestCase extends \PHPUnit_Framework_TestCase { }