Skip to content

Commit 0ceb4c0

Browse files
committed
Applied csfixer
1 parent 18bd972 commit 0ceb4c0

File tree

17 files changed

+127
-72
lines changed

17 files changed

+127
-72
lines changed

Command/InitializeCommand.php

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
11
<?php
2+
23
/*
3-
* This file is part of the <package> package.
4+
* This file is part of the PHPCR Migrations package
45
*
5-
* (c) 2011-2015 Daniel Leech
6+
* (c) Daniel Leech <daniel@dantleech.com>
67
*
78
* For the full copyright and license information, please view the LICENSE
89
* file that was distributed with this source code.
910
*/
1011

1112
namespace DTL\Bundle\PhpcrMigrations\Command;
1213

14+
use DTL\PhpcrMigrations\MigratorFactory;
1315
use Symfony\Component\Console\Command\Command;
14-
use DTL\PhpcrMigrations\VersionStorage;
15-
use DTL\PhpcrMigrations\VersionFinder;
16-
use Symfony\Component\Console\Helper\Table;
17-
use Symfony\Component\Console\Output\OutputInterface;
1816
use Symfony\Component\Console\Input\InputInterface;
19-
use Symfony\Component\Console\Input\InputArgument;
20-
use DTL\PhpcrMigrations\Migrator;
21-
use PHPCR\SessionInterface;
22-
use DTL\PhpcrMigrations\MigratorFactory;
17+
use Symfony\Component\Console\Output\OutputInterface;
2318

2419
class InitializeCommand extends Command
2520
{
2621
private $factory;
2722

2823
public function __construct(
2924
MigratorFactory $factory
30-
)
31-
{
25+
) {
3226
parent::__construct();
3327
$this->factory = $factory;
3428
}

Command/MigrateCommand.php

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
<?php
2+
23
/*
3-
* This file is part of the <package> package.
4+
* This file is part of the PHPCR Migrations package
45
*
5-
* (c) 2011-2015 Daniel Leech
6+
* (c) Daniel Leech <daniel@dantleech.com>
67
*
78
* For the full copyright and license information, please view the LICENSE
89
* file that was distributed with this source code.
910
*/
1011

1112
namespace DTL\Bundle\PhpcrMigrations\Command;
1213

14+
use DTL\PhpcrMigrations\MigratorFactory;
1315
use Symfony\Component\Console\Command\Command;
14-
use DTL\PhpcrMigrations\VersionStorage;
15-
use DTL\PhpcrMigrations\VersionFinder;
16-
use Symfony\Component\Console\Helper\Table;
17-
use Symfony\Component\Console\Output\OutputInterface;
18-
use Symfony\Component\Console\Input\InputInterface;
1916
use Symfony\Component\Console\Input\InputArgument;
20-
use DTL\PhpcrMigrations\Migrator;
21-
use PHPCR\SessionInterface;
22-
use DTL\PhpcrMigrations\MigratorFactory;
17+
use Symfony\Component\Console\Input\InputInterface;
18+
use Symfony\Component\Console\Output\OutputInterface;
2319
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
2420
use Symfony\Component\DependencyInjection\ContainerInterface;
2521

@@ -34,8 +30,7 @@ class MigrateCommand extends Command
3430
public function __construct(
3531
MigratorFactory $factory,
3632
ContainerInterface $container
37-
)
38-
{
33+
) {
3934
parent::__construct();
4035
$this->factory = $factory;
4136
$this->container = $container;

Command/StatusCommand.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
<?php
2+
23
/*
3-
* This file is part of the <package> package.
4+
* This file is part of the PHPCR Migrations package
45
*
5-
* (c) 2011-2015 Daniel Leech
6+
* (c) Daniel Leech <daniel@dantleech.com>
67
*
78
* For the full copyright and license information, please view the LICENSE
89
* file that was distributed with this source code.
910
*/
1011

1112
namespace DTL\Bundle\PhpcrMigrations\Command;
1213

13-
use Symfony\Component\Console\Command\Command;
14-
use DTL\PhpcrMigrations\VersionStorage;
1514
use DTL\PhpcrMigrations\VersionFinder;
15+
use DTL\PhpcrMigrations\VersionStorage;
16+
use Symfony\Component\Console\Command\Command;
1617
use Symfony\Component\Console\Helper\Table;
17-
use Symfony\Component\Console\Output\OutputInterface;
1818
use Symfony\Component\Console\Input\InputInterface;
19+
use Symfony\Component\Console\Output\OutputInterface;
1920

2021
class StatusCommand extends Command
2122
{
@@ -25,8 +26,7 @@ class StatusCommand extends Command
2526
public function __construct(
2627
VersionStorage $versionStorage,
2728
VersionFinder $finder
28-
)
29-
{
29+
) {
3030
parent::__construct();
3131
$this->versionStorage = $versionStorage;
3232
$this->finder = $finder;
@@ -84,4 +84,3 @@ private function getDate($versionName)
8484
return date('Y-m-d H:i', strtotime($versionName));
8585
}
8686
}
87-

DependencyInjection/Configuration.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
<?php
2+
23
/*
3-
* This file is part of the <package> package.
4+
* This file is part of the PHPCR Migrations package
45
*
5-
* (c) 2011-2015 Daniel Leech
6+
* (c) Daniel Leech <daniel@dantleech.com>
67
*
78
* For the full copyright and license information, please view the LICENSE
89
* file that was distributed with this source code.
910
*/
1011

1112
namespace DTL\Bundle\PhpcrMigrations\DependencyInjection;
1213

13-
use Symfony\Component\Config\Definition\ConfigurationInterface;
1414
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
15+
use Symfony\Component\Config\Definition\ConfigurationInterface;
1516

1617
class Configuration implements ConfigurationInterface
1718
{
@@ -34,4 +35,3 @@ public function getConfigTreeBuilder()
3435
return $treeBuilder;
3536
}
3637
}
37-

DependencyInjection/PhpcrMigrationsExtension.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
<?php
2+
23
/*
3-
* This file is part of the <package> package.
4+
* This file is part of the PHPCR Migrations package
45
*
5-
* (c) 2011-2015 Daniel Leech
6+
* (c) Daniel Leech <daniel@dantleech.com>
67
*
78
* For the full copyright and license information, please view the LICENSE
89
* file that was distributed with this source code.
910
*/
1011

1112
namespace DTL\Bundle\PhpcrMigrations\DependencyInjection;
1213

13-
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
14-
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
1514
use Symfony\Component\Config\FileLocator;
1615
use Symfony\Component\DependencyInjection\ContainerBuilder;
16+
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
17+
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
1718

1819
class PhpcrMigrationsExtension extends Extension
1920
{

Resources/config/services.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,3 @@
4343
</service>
4444
</services>
4545
</container>
46-

Tests/Functional/BaseTestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
<?php
2+
23
/*
3-
* This file is part of the <package> package.
4+
* This file is part of the PHPCR Migrations package
45
*
5-
* (c) 2011-2015 Daniel Leech
6+
* (c) Daniel Leech <daniel@dantleech.com>
67
*
78
* For the full copyright and license information, please view the LICENSE
89
* file that was distributed with this source code.
910
*/
1011

1112
namespace DTL\Bundle\PhpcrMigrations\Tests\Functional;
1213

13-
use Symfony\Component\Console\Tester\CommandTester;
1414
use Symfony\Cmf\Component\Testing\Functional\BaseTestCase as CmfBaseTestCase;
15+
use Symfony\Component\Console\Tester\CommandTester;
1516

1617
abstract class BaseTestCase extends CmfBaseTestCase
1718
{
@@ -35,4 +36,3 @@ protected function executeCommand($serviceId, $arguments)
3536
return $tester;
3637
}
3738
}
38-

Tests/Functional/MigrateCommandTest.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
<?php
2+
23
/*
3-
* This file is part of the <package> package.
4+
* This file is part of the PHPCR Migrations package
45
*
5-
* (c) 2011-2015 Daniel Leech
6+
* (c) Daniel Leech <daniel@dantleech.com>
67
*
78
* For the full copyright and license information, please view the LICENSE
89
* file that was distributed with this source code.
910
*/
1011

1112
namespace DTL\Bundle\PhpcrMigrations\Tests\Functional;
1213

13-
use Symfony\Component\Console\Tester\CommandTester;
14-
use DTL\Bundle\PhpcrMigrations\Tests\Functional\BaseTestCase;
15-
1614
class MigrateCommandTest extends BaseTestCase
1715
{
1816
/**
19-
* It should migrate all the unexecuted migrators
17+
* It should migrate all the unexecuted migrators.
2018
*/
2119
public function testMigrateToLatest()
2220
{
@@ -27,7 +25,7 @@ public function testMigrateToLatest()
2725
}
2826

2927
/**
30-
* It should upgrade to a given version
28+
* It should upgrade to a given version.
3129
*/
3230
public function testUpgradeTo()
3331
{
@@ -41,7 +39,7 @@ public function testUpgradeTo()
4139
}
4240

4341
/**
44-
* It should downgrade to a given version
42+
* It should downgrade to a given version.
4543
*/
4644
public function testUpgradeRevertTo()
4745
{

Tests/Functional/StatusCommandTest.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
<?php
2+
23
/*
3-
* This file is part of the <package> package.
4+
* This file is part of the PHPCR Migrations package
45
*
5-
* (c) 2011-2015 Daniel Leech
6+
* (c) Daniel Leech <daniel@dantleech.com>
67
*
78
* For the full copyright and license information, please view the LICENSE
89
* file that was distributed with this source code.
910
*/
1011

1112
namespace DTL\Bundle\PhpcrMigrations\Tests\Functional;
1213

13-
use Symfony\Component\Console\Tester\CommandTester;
14-
use DTL\Bundle\PhpcrMigrations\Tests\Functional\BaseTestCase;
15-
1614
class StatusCommandTest extends BaseTestCase
1715
{
1816
/**
19-
* It should list all of the migrations
17+
* It should list all of the migrations.
2018
*/
2119
public function testShowAll()
2220
{
@@ -27,7 +25,7 @@ public function testShowAll()
2725
}
2826

2927
/**
30-
* It should show the current version
28+
* It should show the current version.
3129
*/
3230
public function testShowCurrentVersion()
3331
{

Tests/Resources/Bundle/OneTestBundle/OneTestBundle.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the PHPCR Migrations package
5+
*
6+
* (c) Daniel Leech <daniel@dantleech.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace DTL\Bundle\PhpcrMigrations\Tests\Resources\Bundle\OneTestBundle;
413

514
use Symfony\Component\HttpKernel\Bundle\Bundle;

0 commit comments

Comments
 (0)