src/lib/CronFileWriter.php
public function delete($delim = '#')
    {
        $file = file_get_contents($this->file);

        $delim = preg_quote($delim);
        if (preg_match("/#\s$delim\s(.*?)\s#\s\\\\$delim/s", $file, $matches)) {
            file_put_contents(
                $this->file,
                str_replace(PHP_EOL.$matches[0].PHP_EOL, '', $file)
            );
            return true;
        } else {
            return false;
        }
    }
public function delete($delim = '#')
    {
        $file = file_get_contents($this->file);

        $delim = preg_quote($delim);
        if (preg_match("/#\s$delim\s(.*?)\s#\s\\\\$delim/s", $file, $matches)) {
            file_put_contents(
                $this->file,
                str_replace(PHP_EOL.$matches[0].PHP_EOL, '', $file)
            );
            return true;
        } else {
            return false;
        }
    }
public function delete ( $ delim = '#' ) { $ file = file_get_contents ( $ this -> file ) ; $ delim = preg_quote ( $ delim ) ; if ( preg_match ( "/#\s$delim\s(.*?)\s#\s\\\\$delim/s" , $ file , $ matches ) ) { file_put_contents ( $ this -> file , str_replace ( PHP_EOL . $ matches [ 0 ] . PHP_EOL , '' , $ file ) ) ; return true ; } else { return false ; } }
Delete entry from .htaccess file

@param string $delim
@return bool
Delete entry from . htaccess file