Skip to content

Commit

Permalink
Merge pull request #18 from redthor/v2/array-bracket-syntax
Browse files Browse the repository at this point in the history
V2/array bracket syntax
  • Loading branch information
redthor committed Apr 3, 2018
2 parents ee203af + fc51ad0 commit c7cb0aa
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 17 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
;

$config = PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
])
->setFinder($finder)
;

return $config;
6 changes: 3 additions & 3 deletions Command/CommandHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
final class CommandHelper
{
/**
* configureMigrations
* configureMigrations.
*
* @param ContainerInterface $container
* @param Configuration $configuration
Expand Down Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);
];
}
```

Expand Down
1 change: 0 additions & 1 deletion Tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
$class = 'PHPUnit\Framework\TestCase';

if (!class_exists($class)) {

abstract class TestCase extends \PHPUnit_Framework_TestCase
{
}
Expand Down

0 comments on commit c7cb0aa

Please sign in to comment.