original_string: 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."
                  )
              );
          }
      }
code: 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."
                  )
              );
          }
      }
code_tokens: 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." ) ) ; } }
docstring: structure is correct
docstring_tokens: structure is correct