| 1 | <?php |
||
| 7 | class Validate extends \Validate { |
||
| 8 | |||
| 9 | # Validate auth code |
||
| 10 | |||
| 11 | public static function authCode(string $value) { |
||
| 15 | |||
| 16 | # Validate user name |
||
| 17 | |||
| 18 | public static function userName(string $value) { |
||
| 24 | |||
| 25 | # Validate user password |
||
| 26 | |||
| 27 | public static function userPassword(string $value) { |
||
| 33 | |||
| 34 | # Validate user email |
||
| 35 | |||
| 36 | public static function userEmail(string $value) { |
||
| 40 | |||
| 41 | # Validate file or directory name |
||
| 42 | |||
| 43 | public static function fileName(string $value) { |
||
| 47 | |||
| 48 | # Validate url |
||
| 49 | |||
| 50 | public static function url(string $value) { |
||
| 60 | } |
||
| 61 | } |
||
| 62 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.