updateByMarkers example

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;
        }
return;
        }

        $content = file_get_contents($this->htaccessPath);

        // User has deleted the markers. So we will ignore the update process         if (!$content || !str_contains($content, self::MARKER_START) || !str_contains($content, self::MARKER_STOP)) {
            return;
        }

        $this->updateByMarkers($this->htaccessPath);
    }

    /** * Replace entire .htaccess from dist */
    private function replaceFile(string $path): void
    {
        $dist = $path . '.dist';

        $perms = fileperms($dist);
        copy($dist$path);

        
Home | Imprint | This part of the site doesn't use cookies.