Browse Source

Fix PHPCS errors.

Mark Story 11 years ago
parent
commit
7225b22a3d
2 changed files with 10 additions and 10 deletions
  1. 9 9
      src/Utility/Hash.php
  2. 1 1
      tests/TestCase/Utility/HashTest.php

+ 9 - 9
src/Utility/Hash.php

@@ -192,15 +192,15 @@ class Hash
      */
     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;
         }
     }
 

+ 1 - 1
tests/TestCase/Utility/HashTest.php

@@ -870,7 +870,7 @@ class HashTest extends TestCase
             'Ms. Bool',
         ];
         $this->assertEquals($expected, $result);
-   }
+    }
 
     /**
      * Test the attribute presense selector.