@@ -102,6 +102,9 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | + /** |
|
| 106 | + * @param integer $length |
|
| 107 | + */ |
|
| 105 | 108 | public function validateLength($value, $length) |
| 106 | 109 | { |
| 107 | 110 | $realLength = strlen($value); |
@@ -117,6 +120,9 @@ discard block |
||
| 117 | 120 | } |
| 118 | 121 | } |
| 119 | 122 | |
| 123 | + /** |
|
| 124 | + * @param string $string |
|
| 125 | + */ |
|
| 120 | 126 | private function throwInvalidArgumentMustBe($string) |
| 121 | 127 | { |
| 122 | 128 | throw new InvalidArgumentException((new ReflectionClass($this))->getShortName()." must be ".$string); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | try { |
| 27 | - $value = str_repeat('?!@#$%^&', 8);; |
|
| 27 | + $value = str_repeat('?!@#$%^&', 8); ; |
|
| 28 | 28 | $token = new Token($value); |
| 29 | 29 | } catch (InvalidArgumentException $e) { |
| 30 | 30 | echo $e->getMessage(); //Token must be valid base_64 |