public static function write($filePath, $content, $compareContents = false)
    {
        if ($compareContents && self::compareContents($filePath, $content)) {
            return 0;
        }

        return file_put_contents($filePath, $content);
    }