X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FGitInfo.php;h=e9e780d53cb6ac943e5713e774fa1e1faf226e09;hb=76617a777176ac1109791929c90bc054c69bcfd1;hp=363d7b8050042e8d5f1fd596292a2219609ab1af;hpb=fd414914c2f880b4d1c214537e64ab12b8070a99;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GitInfo.php b/includes/GitInfo.php index 363d7b8050..e9e780d53c 100644 --- a/includes/GitInfo.php +++ b/includes/GitInfo.php @@ -156,7 +156,7 @@ class GitInfo { * @return bool Whether or not the string looks like a SHA1 */ public static function isSHA1( $str ) { - return !!preg_match( '/^[0-9A-F]{40}$/i', $str ); + return (bool)preg_match( '/^[0-9A-F]{40}$/i', $str ); } /**