Skip to content

Commit

Permalink
Merge pull request #159 from raphaelstolt/fix-committed-spelling
Browse files Browse the repository at this point in the history
Fixes un-/committed spelling
  • Loading branch information
liuggio committed Sep 21, 2016
2 parents 4a3b4ce + e543fd2 commit d637277
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
24 changes: 12 additions & 12 deletions src/Badge/src/Model/UseCase/CreateComposerLockBadge.php
Expand Up @@ -18,14 +18,14 @@
*/
class CreateComposerLockBadge extends BaseCreatePackagistImage
{
const COLOR_COMMITED = 'e60073';
const COLOR_UNCOMMITED = '99004d';
const COLOR_ERROR = 'aa0000';
const LOCK_COMMITED = 'commited';
const LOCK_UNCOMMITED = 'uncommited';
const LOCK_ERROR = 'checking';
const SUBJECT = '.lock';
const SUBJECT_ERROR = 'Error';
const COLOR_COMMITTED = 'e60073';
const COLOR_UNCOMMITTED = '99004d';
const COLOR_ERROR = 'aa0000';
const LOCK_COMMITTED = 'committed';
const LOCK_UNCOMMITTED = 'uncommitted';
const LOCK_ERROR = 'checking';
const SUBJECT = '.lock';
const SUBJECT_ERROR = 'Error';

protected $text = self::LOCK_ERROR;

Expand Down Expand Up @@ -76,12 +76,12 @@ public function createComposerLockBadge($repository, $format = 'svg')
$color = self::COLOR_ERROR;
$subject = self::SUBJECT_ERROR;
if (200 === $status) {
$this->text = self::LOCK_COMMITED;
$color = self::COLOR_COMMITED;
$this->text = self::LOCK_COMMITTED;
$color = self::COLOR_COMMITTED;
$subject = self::SUBJECT;
} elseif (404 === $status) {
$this->text = self::LOCK_UNCOMMITED;
$color = self::COLOR_UNCOMMITED;
$this->text = self::LOCK_UNCOMMITTED;
$color = self::COLOR_UNCOMMITTED;
$subject = self::SUBJECT;
}

Expand Down
6 changes: 3 additions & 3 deletions src/Badge/tests/Model/UseCase/CreateComposerLockBadgeTest.php
Expand Up @@ -69,7 +69,7 @@ public function testShouldCreateComposerLockBadge($returnCode, $expected)
->will($this->returnValue($returnCode));

$request = $this->getMockWithoutInvokingTheOriginalConstructor('\Guzzle\Http\Message\RequestInterface');

$this->client->expects($this->once())
->method('head')
->will($this->returnValue($request));
Expand All @@ -86,8 +86,8 @@ public function testShouldCreateComposerLockBadge($returnCode, $expected)
public function shouldCreateComposerLockBadgeProvider()
{
return array(
array(200, 'commited'),
array(404, 'uncommited'),
array(200, 'committed'),
array(404, 'uncommitted'),
array(500, 'checking'),
);
}
Expand Down

0 comments on commit d637277

Please sign in to comment.