mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-01-22 20:17:31 +00:00
Fix CS issues
This commit is contained in:
parent
5eedcbb99e
commit
2f71ff8bda
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue