Skip to content

Commit

Permalink
Use elseif everywhere
Browse files Browse the repository at this point in the history
Replace the two uses of 'else if' with 'elseif'.
  • Loading branch information
netcarver committed Oct 26, 2013
1 parent 03893cd commit c9a45c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Netcarver/Textile/Parser.php
Expand Up @@ -835,9 +835,9 @@ public function __construct($doctype = 'xhtml')

if (php_sapi_name() === 'cli') {
$this->doc_root = getcwd();
} else if (!empty($_SERVER['DOCUMENT_ROOT'])) {
} elseif (!empty($_SERVER['DOCUMENT_ROOT'])) {
$this->doc_root = $_SERVER['DOCUMENT_ROOT'];
} else if (!empty($_SERVER['PATH_TRANSLATED'])) {
} elseif (!empty($_SERVER['PATH_TRANSLATED'])) {
$this->doc_root = $_SERVER['PATH_TRANSLATED'];
}

Expand Down

0 comments on commit c9a45c6

Please sign in to comment.