|
@@ -50,7 +50,7 @@ |
|
|
block discarded – undo |
|
50
|
50
|
public function generate(int $length, |
|
51
|
51
|
string $characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'): string { |
|
52
|
52
|
if ($length <= 0) { |
|
53
|
|
- throw new \LengthException('Invalid length specified: ' . $length . ' must be bigger than 0'); |
|
|
53
|
+ throw new \LengthException('Invalid length specified: '.$length.' must be bigger than 0'); |
|
54
|
54
|
} |
|
55
|
55
|
|
|
56
|
56
|
$maxCharIndex = \strlen($characters) - 1; |
Please login to merge, or discard this patch.