private function validateDocumentRoot()
    {
        
        // Check that the DOCUMENT_ROOT is a directory called `public`.
        if (end(explode('\\', $this->documentRoot)) != "public" &&
            end(explode('/', $this->documentRoot)) != "public") {
            die($this->logEntry("Your servers DOCUMENT_ROOT needs to be a directory called `public`"));
        }

        // Check that the DOCUMENT_ROOT parent directory is writable.
        if (!is_writable(dirname($this->documentRoot))) {
            die(
                $this->logEntry(
                        "Web server user does not have access to the DOCUMENT_ROOT's parent directory. ".
                    "This is required in order for Dappur to function properly."
                )
            );
        }
    }
private function validateDocumentRoot()
    {
        
        // Check that the DOCUMENT_ROOT is a directory called `public`.
        if (end(explode('\\', $this->documentRoot)) != "public" &&
            end(explode('/', $this->documentRoot)) != "public") {
            die($this->logEntry("Your servers DOCUMENT_ROOT needs to be a directory called `public`"));
        }

        // Check that the DOCUMENT_ROOT parent directory is writable.
        if (!is_writable(dirname($this->documentRoot))) {
            die(
                $this->logEntry(
                        "Web server user does not have access to the DOCUMENT_ROOT's parent directory. ".
                    "This is required in order for Dappur to function properly."
                )
            );
        }
    }
private function validateDocumentRoot ( ) { // Check that the DOCUMENT_ROOT is a directory called `public`. if ( end ( explode ( '\\' , $ this -> documentRoot ) ) != "public" && end ( explode ( '/' , $ this -> documentRoot ) ) != "public" ) { die ( $ this -> logEntry ( "Your servers DOCUMENT_ROOT needs to be a directory called `public`" ) ) ; } // Check that the DOCUMENT_ROOT parent directory is writable. if ( ! is_writable ( dirname ( $ this -> documentRoot ) ) ) { die ( $ this -> logEntry ( "Web server user does not have access to the DOCUMENT_ROOT's parent directory. " . "This is required in order for Dappur to function properly." ) ) ; } }
structure is correct
structure is correct