Skip to content

Commit

Permalink
CS improvement (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDievart authored Nov 13, 2018
1 parent 6b32922 commit 5558f96
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ return PhpCsFixer\Config::create()
'php_unit_no_expectation_annotation' => false,
'array_syntax' => array('syntax' => 'short'),
'fopen_flags' => false,
'native_function_invocation' => ['include' => ['@compiler_optimized']],
'ordered_imports' => true,
'protected_to_private' => false,
'return_type_declaration' => ['space_before' => 'none'],
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ services:
networks:
- proxy
depends_on:
- database
- mysql
3 changes: 1 addition & 2 deletions src/Parser/YamlParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Elao\ElaoCommandMigration\Parser\Exception\InvalidYamlSchemaException;
use Symfony\Component\Yaml\Yaml;
use function is_array;

class YamlParser implements ParserInterface
{
Expand All @@ -28,7 +27,7 @@ public function getStorageConfiguration(): array
public function getMigrations(): array
{
if (!isset($this->configuration['elao_command_migration']['migrations'])
|| !is_array($this->configuration['elao_command_migration']['migrations'])
|| !\is_array($this->configuration['elao_command_migration']['migrations'])
) {
throw new InvalidYamlSchemaException('Missing migrations node');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/E2ETest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class E2ETest extends TestCase
{
public function testE2E()
{
$pathToFile = sprintf('%s/elao_command_migration.yaml', __DIR__ );
$pathToFile = sprintf('%s/elao_command_migration.yaml', __DIR__);
$process = new Process(sprintf('php bin/elaoCommandMigration %s', $pathToFile));
$process->run();

Expand Down

0 comments on commit 5558f96

Please sign in to comment.