protected function _updateFile($fileName, $content)
    {
        $oldContent = null;
        if (file_exists($fileName)) {
            $oldContent = file_get_contents($fileName);
        }

        if ($content !== $oldContent) {
            file_put_contents($fileName, $content);
        }

        return $fileName;
    }
protected function _updateFile($fileName, $content)
    {
        $oldContent = null;
        if (file_exists($fileName)) {
            $oldContent = file_get_contents($fileName);
        }

        if ($content !== $oldContent) {
            file_put_contents($fileName, $content);
        }

        return $fileName;
    }
protected function _updateFile ( $ fileName , $ content ) { $ oldContent = null ; if ( file_exists ( $ fileName ) ) { $ oldContent = file_get_contents ( $ fileName ) ; } if ( $ content !== $ oldContent ) { file_put_contents ( $ fileName , $ content ) ; } return $ fileName ; }
Update file
Prevent file lastModified time change

@param string $fileName
@param string $content
@return mixed
Update file Prevent file lastModified time change