Skip to content

Commit c9954d2

Browse files
authored
Readability: Delimit public and private constants
1 parent ac4dd70 commit c9954d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Generator/Password.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* @author Pierre-Henry Soria <hi@ph7.me>
4-
* @copyright (c) 2021-2022, Pierre-Henry Soria
4+
* @copyright (c) 2021-2023, Pierre-Henry Soria
55
* @license MIT License; <https://opensource.org/licenses/MIT>
66
*/
77

@@ -12,6 +12,7 @@
1212
class Password
1313
{
1414
public const DEFAULT_LENGTH = 12;
15+
1516
private const SPECIAL_CHARACTERS = ['-', '_', '~', '|', '%', '^', '!', '$', '#', '@', '?'];
1617

1718
public static function generate(int $length = self::DEFAULT_LENGTH, bool $specialCharacters = true): string

0 commit comments

Comments
 (0)