From 2f71ff8bdae269ccef83eea9478e376f61f8323b Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 20 Mar 2018 20:34:27 +0000 Subject: [PATCH] Fix CS issues --- bin/generate-filters.php | 3 +-- src/Console/Command/GenerateCommand.php | 3 +-- src/Container/CommandCompilerClass.php | 3 ++- src/Service/Builder.php | 3 ++- tests/Unit/FilterTest.php | 3 ++- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/bin/generate-filters.php b/bin/generate-filters.php index 74a21d9..985eac1 100644 --- a/bin/generate-filters.php +++ b/bin/generate-filters.php @@ -6,8 +6,7 @@ use Symfony\Component\Console\Application; if (file_exists(__DIR__.'/../vendor/autoload.php')) { require_once __DIR__.'/../vendor/autoload.php'; -} -elseif (file_exists(__DIR__.'/../../../autoload.php')) { +} elseif (file_exists(__DIR__.'/../../../autoload.php')) { require_once __DIR__.'/../../../autoload.php'; } diff --git a/src/Console/Command/GenerateCommand.php b/src/Console/Command/GenerateCommand.php index d57b402..a81fe46 100644 --- a/src/Console/Command/GenerateCommand.php +++ b/src/Console/Command/GenerateCommand.php @@ -39,8 +39,7 @@ class GenerateCommand extends Command if (file_exists(__DIR__.'/'.$inputFile)) { $filters = require_once __DIR__.'/'.$inputFile; - } - elseif (file_exists(__DIR__.'/../../../../../../'.$inputFile)) { + } elseif (file_exists(__DIR__.'/../../../../../../'.$inputFile)) { # Installed as a dependency within "vendor". $filters = require_once __DIR__.'/../../../../../../'.$inputFile; } else { diff --git a/src/Container/CommandCompilerClass.php b/src/Container/CommandCompilerClass.php index 2bf07b6..64f441a 100644 --- a/src/Container/CommandCompilerClass.php +++ b/src/Container/CommandCompilerClass.php @@ -11,7 +11,8 @@ class CommandCompilerClass implements CompilerPassInterface /** * {@inheritdoc} */ - public function process(ContainerBuilder $container) { + public function process(ContainerBuilder $container) + { $definition = $container->findDefinition('app.cli'); $taggedServices = $container->findTaggedServiceIds('ConsoleCommand'); diff --git a/src/Service/Builder.php b/src/Service/Builder.php index 9acdbb7..1a9e094 100644 --- a/src/Service/Builder.php +++ b/src/Service/Builder.php @@ -29,7 +29,8 @@ class Builder */ private $xml; - public function __construct(array $filters, $outputFile = 'filters.xml', $writeFile = true) { + public function __construct(array $filters, $outputFile = 'filters.xml', $writeFile = true) + { $this->filesystem = new Filesystem(); $this->filters = $filters; $this->outputFile = $outputFile; diff --git a/tests/Unit/FilterTest.php b/tests/Unit/FilterTest.php index 8f9c425..f986900 100644 --- a/tests/Unit/FilterTest.php +++ b/tests/Unit/FilterTest.php @@ -34,7 +34,8 @@ class FilterTest extends TestCase /** * @covers Filter::hasNot() */ - public function testHasNot() { + public function testHasNot() + { $this->assertEquals( ['doesNotHaveTheWord' => 'something'], $this->filter->hasNot('something')->getProperties()