| @@ -14,9 +14,9 @@ | ||
| 14 | 14 | * @author Bryan Ruiz |
| 15 | 15 | **/ |
| 16 | 16 | class Base32Static { |
| 17 | 17 | |
| 18 | - private static $map = array( | |
| 18 | + private static $map = [ | |
| 19 | 19 | 'A', |
| 20 | 20 | 'B', |
| 21 | 21 | 'C', |
| 22 | 22 | 'D', |
| @@ -48,11 +48,11 @@ | ||
| 48 | 48 | '5', |
| 49 | 49 | '6', |
| 50 | 50 | '7', // 31 |
| 51 | 51 | '=', // padding character |
| 52 | - ); | |
| 52 | + ]; | |
| 53 | 53 | |
| 54 | - private static $flipped_map = array( | |
| 54 | + private static $flipped_map = [ | |
| 55 | 55 | 'A' => '0', |
| 56 | 56 | 'B' => '1', |
| 57 | 57 | 'C' => '2', |
| 58 | 58 | 'D' => '3', |
| @@ -83,9 +83,9 @@ | ||
| 83 | 83 | '4' => '28', |
| 84 | 84 | '5' => '29', |
| 85 | 85 | '6' => '30', |
| 86 | 86 | '7' => '31', |
| 87 | - ); | |
| 87 | + ]; | |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | 90 | * Use padding false when encoding for urls |
| 91 | 91 | * |
| @@ -133,9 +133,9 @@ | ||
| 133 | 133 | return; |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | $padding_char_count = substr_count( $input, self::$map[32] ); |
| 137 | - $allowed_values = array( 6, 4, 3, 1, 0 ); | |
| 137 | + $allowed_values = [ 6, 4, 3, 1, 0 ]; | |
| 138 | 138 | |
| 139 | 139 | if ( ! in_array( $padding_char_count, $allowed_values ) ) { |
| 140 | 140 | return false; |
| 141 | 141 | } |