From 7225b22a3d18c127e787cfbb1bb94b3648bb3f63 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sun, 3 May 2015 21:03:41 -0400 Subject: [PATCH] Fix PHPCS errors. --- src/Utility/Hash.php | 18 +++++++++--------- tests/TestCase/Utility/HashTest.php | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Utility/Hash.php b/src/Utility/Hash.php index 7ad2410ff64..7e611823ba4 100644 --- a/src/Utility/Hash.php +++ b/src/Utility/Hash.php @@ -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; } } diff --git a/tests/TestCase/Utility/HashTest.php b/tests/TestCase/Utility/HashTest.php index b6d10de8fa3..ee546ef40d1 100644 --- a/tests/TestCase/Utility/HashTest.php +++ b/tests/TestCase/Utility/HashTest.php @@ -870,7 +870,7 @@ public function testExtractWildcard() 'Ms. Bool', ]; $this->assertEquals($expected, $result); - } + } /** * Test the attribute presense selector.