return;
} $content =
file_get_contents($this->htaccessPath
);
// User has deleted the markers. So we will ignore the update process
if (strpos($content, self::MARKER_START
) === false ||
strpos($content, self::MARKER_STOP
) === false
) { return;
} $this->
updateByMarkers($this->htaccessPath
);
} /**
* Replace entire .htaccess from dist
*/
private function replaceFile(string
$path): void
{ $dist =
$path . self::TEMPLATE_SUFFIX;
if (!
file_exists($dist)) { return;
}