Skip to content

Commit

Permalink
Fix braces
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispluchino committed Oct 12, 2016
1 parent 920c5f8 commit 3d44dac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions Tests/Repository/Vcs/GitDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@ public function testPublicRepositoryWithFilesystemCache($type, $filename)
$process->expects($this->any())
->method('execute')
->will($this->returnCallback(function ($command, &$output = null) use ($identifier, $repoConfig) {
if ($command === sprintf('git show %s', sprintf('%s:%s', escapeshellarg($identifier), $repoConfig['filename']))) {
$output = '{"name": "foo"}';
} elseif (false !== strpos($command, 'git log')) {
$date = new \DateTime(null, new \DateTimeZone('UTC'));
$output = $date->getTimestamp();
}

return 0;
}));
if ($command === sprintf('git show %s', sprintf('%s:%s', escapeshellarg($identifier), $repoConfig['filename']))) {
$output = '{"name": "foo"}';
} elseif (false !== strpos($command, 'git log')) {
$date = new \DateTime(null, new \DateTimeZone('UTC'));
$output = $date->getTimestamp();
}

return 0;
}));

/* @var IOInterface $io */
/* @var ProcessExecutor $process */
Expand Down
4 changes: 2 additions & 2 deletions Tests/Repository/Vcs/GitHubDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ public function testGetComposerInformationWithGitDriver($type, $filename)
$process->expects($this->any())
->method('execute')
->will($this->returnCallback(function () {
return 0;
}));
return 0;
}));

/* @var IOInterface $io */
/* @var ProcessExecutor $process */
Expand Down

0 comments on commit 3d44dac

Please sign in to comment.