Skip to content

Commit

Permalink
Fix PHPCS errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 4, 2015
1 parent f5d9a1f commit 7225b22
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/Utility/Hash.php
Expand Up @@ -192,15 +192,15 @@ protected static function _splitConditions($token)
*/
protected static function _matchToken($key, $token)
{
switch ($token) {
case '{n}':
return is_numeric($key);
case '{s}':
return is_string($key);
case '{*}':
return true;
default:
return is_numeric($token) ? ($key == $token) : $key === $token;
switch ($token) {
case '{n}':
return is_numeric($key);
case '{s}':
return is_string($key);
case '{*}':
return true;
default:
return is_numeric($token) ? ($key == $token) : $key === $token;
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Utility/HashTest.php
Expand Up @@ -870,7 +870,7 @@ public function testExtractWildcard()
'Ms. Bool',
];
$this->assertEquals($expected, $result);
}
}

/**
* Test the attribute presense selector.
Expand Down

0 comments on commit 7225b22

Please sign in to comment.