It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
It seems like you are loosely comparing preg_match(self::IDENTIFIER_REGEX, $identifier) of type integer to the boolean true. If you are specifically checking for non-zero, consider using something more explicit like > 0 or !== 0 instead.
Loading history...
32
}
33
34
/**
35
* Checks if a number is a valid version number.
36
*
37
* @param integer $number A number.
38
*
39
* @return boolean TRUE if the number is valid, FALSE If not.
It seems like you are loosely comparing preg_match('/^(0|[1-9]\\d*)$/', $number) of type integer to the boolean true. If you are specifically checking for non-zero, consider using something more explicit like > 0 or !== 0 instead.
Loading history...
44
}
45
46
/**
47
* Checks if the string representation of a version number is valid.
48
*
49
* @param string $version The string representation.
50
*
51
* @return boolean TRUE if the string representation is valid, FALSE if not.
It seems like you are loosely comparing preg_match(self::VERSION_REGEX, $version) of type integer to the boolean true. If you are specifically checking for non-zero, consider using something more explicit like > 0 or !== 0 instead.