Fix CS issues

This commit is contained in:
Oliver Davies 2018-03-20 20:34:27 +00:00
parent 5eedcbb99e
commit 2f71ff8bda
5 changed files with 8 additions and 7 deletions

View file

@ -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';
}

View file

@ -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 {

View file

@ -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');

View file

@ -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;

View file

@ -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()