Skip to content

Commit

Permalink
Merge pull request #1 from cyberbit/analysis-XWDrON
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
cyberbit committed Jan 8, 2017
2 parents f6527b0 + 8b3e1a4 commit fb947a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Module/Config/Step/OverrideConfigFromCLI.php
Expand Up @@ -27,7 +27,7 @@ public function __invoke(Project $project)
if (!$project->metadata['cliConfig']) {
return;
}

$cliConfig = [];
foreach ($project->metadata['cliConfig'] as $item) {
$explosion = explode('=', $item, 2);
Expand Down
Expand Up @@ -4,7 +4,6 @@

use Couscous\Module\Config\Step\OverrideConfigFromCLI;
use Couscous\Tests\UnitTest\Mock\MockProject;
use Psr\Log\LoggerInterface;

/**
* @covers \Couscous\Module\Config\Step\OverrideConfigFromCLI
Expand All @@ -19,7 +18,7 @@ public function should_override_title_if_specified()
$project = new MockProject();
$project->metadata['title'] = 'foo';
$project->metadata['cliConfig'] = ['title=bar'];

$logger = $this->getMock("Psr\Log\LoggerInterface");

$step = new OverrideConfigFromCLI($logger);
Expand All @@ -36,7 +35,7 @@ public function should_not_override_title_if_not_specified()
$project = new MockProject();
$project->metadata['title'] = 'foo';
$project->metadata['cliConfig'] = [];

$logger = $this->getMock("Psr\Log\LoggerInterface");

$step = new OverrideConfigFromCLI($logger);
Expand All @@ -52,7 +51,7 @@ public function should_not_override_title_if_no_cliConfig()
{
$project = new MockProject();
$project->metadata['title'] = 'foo';

$logger = $this->getMock("Psr\Log\LoggerInterface");

$step = new OverrideConfigFromCLI($logger);
Expand Down

0 comments on commit fb947a2

Please sign in to comment.