X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=includes%2FGitInfo.php;h=e9e780d53cb6ac943e5713e774fa1e1faf226e09;hb=0a08a3144b46d6f1217eb792bd7b464711c71a22;hp=363d7b8050042e8d5f1fd596292a2219609ab1af;hpb=c2f3a2c5a40f9138b531e378e47da169f151854b;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 ); } /**