Evercode1\ViewMaker\RemoveChart::chartExists PHP Method

chartExists() private method

private chartExists ( )
    private function chartExists()
    {
        $start = '<!-- Begin ' . $this->modelName . ' Chart -->';
        $end = '<!-- End ' . $this->modelName . ' Chart -->';
        $file = base_path('resources/views/' . $this->modelPath . '/index.blade.php');
        //read the entire string from file
        $content = file_get_contents($file);
        // do we have the chart?
        return $this->patternMatch($start, $end, $content) ? true : false;
    }