X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FGitInfo.php;h=102510ebc59cc0ae3aae2f3182080a42c7e34b85;hp=363d7b8050042e8d5f1fd596292a2219609ab1af;hb=04d1aa3033f40a38d721f7f0e88b5bac440d2869;hpb=079b3d5a25698b83c05e665c49da71227bc374e0 diff --git a/includes/GitInfo.php b/includes/GitInfo.php index 363d7b8050..102510ebc5 100644 --- a/includes/GitInfo.php +++ b/includes/GitInfo.php @@ -66,7 +66,7 @@ class GitInfo { $this->repoDir = $repoDir; $this->cacheFile = self::getCacheFilePath( $repoDir ); wfDebugLog( 'gitinfo', - "Computed cacheFile={$this->cacheFile} for {$repoDir}" + "Candidate cacheFile={$this->cacheFile} for {$repoDir}" ); if ( $usePrecomputed && $this->cacheFile !== null && @@ -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 ); } /**