Merge "maintenance: Script to rename titles for Unicode uppercasing changes"
[lhc/web/wiklou.git] / includes / GitInfo.php
index 363d7b8..102510e 100644 (file)
@@ -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 );
        }
 
        /**