@@ -39,7 +39,7 @@ |
||
| 39 | 39 | |
| 40 | 40 | if (!fs::exists($this->themeFolder)) |
| 41 | 41 | { |
| 42 | - throw new FileNotFoundException("The '${themeName}' theme folder could not be found.'"); |
|
| 42 | + throw new FileNotFoundException("The '${themename}' theme folder could not be found.'"); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | if (fs::exists($this->themeFile)) |
@@ -167,8 +167,8 @@ |
||
| 167 | 167 | { |
| 168 | 168 | if (($themeName = $this->configuration->getTheme())) |
| 169 | 169 | { |
| 170 | - $themePath = "../_themes/${themeName}/_sass"; |
|
| 171 | - $content = preg_replace("/(@import ['\"])(@theme)(.+)/", "$1${themePath}$3", $content); |
|
| 170 | + $themePath = "../_themes/${themename}/_sass"; |
|
| 171 | + $content = preg_replace("/(@import ['\"])(@theme)(.+)/", "$1${themepath}$3", $content); |
|
| 172 | 172 | } |
| 173 | 173 | } |
| 174 | 174 | |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | // Exception thrown when language not supported |
| 64 | 64 | catch (\DomainException $exception) |
| 65 | 65 | { |
| 66 | - trigger_error("An unsupported language (${langDef['language']}) was detected in a code block", E_USER_WARNING); |
|
| 66 | + trigger_error("An unsupported language (${langdef['language']}) was detected in a code block", E_USER_WARNING); |
|
| 67 | 67 | } |
| 68 | 68 | catch (\Exception $e) |
| 69 | 69 | { |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | $host = parse_url($linkBlock['element']['attributes']['href'], PHP_URL_HOST); |
| 103 | 103 | |
| 104 | 104 | // If a host was found, and it is not on the list of internal hosts, add the attributes |
| 105 | - if ($host !== NULL && !in_array($host, $this->internalhosts)) |
|
| 105 | + if ($host !== null && !in_array($host, $this->internalhosts)) |
|
| 106 | 106 | { |
| 107 | 107 | if ($this->externallinkrel) |
| 108 | 108 | { |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | $host = parse_url($href, PHP_URL_HOST); |
| 29 | 29 | |
| 30 | 30 | // If a host was found, and it is not on the list of internal hosts, add the attributes |
| 31 | - if ($host !== NULL && !in_array($host, $internalHosts)) |
|
| 31 | + if ($host !== null && !in_array($host, $internalHosts)) |
|
| 32 | 32 | { |
| 33 | 33 | if ($externalRel && !isset($attributes['rel'])) |
| 34 | 34 | { |