@@ -175,12 +175,12 @@ discard block |
||
175 | 175 | } |
176 | 176 | } |
177 | 177 | |
178 | - protected function addFileToTracker(File &$file) |
|
178 | + protected function addFileToTracker(File & $file) |
|
179 | 179 | { |
180 | 180 | $this->trackedItemsFlattened[$file->getRelativeFilePath()] = &$file; |
181 | 181 | } |
182 | 182 | |
183 | - protected function delFileFromTracker(File &$file) |
|
183 | + protected function delFileFromTracker(File & $file) |
|
184 | 184 | { |
185 | 185 | unset($this->trackedItemsFlattened[$file->getRelativeFilePath()]); |
186 | 186 | } |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * @param ReadableDocument $trackedItem |
192 | 192 | * @param string|null $namespace |
193 | 193 | */ |
194 | - protected function addObjectToTracker(ReadableDocument &$trackedItem, $namespace = null) |
|
194 | + protected function addObjectToTracker(ReadableDocument & $trackedItem, $namespace = null) |
|
195 | 195 | { |
196 | 196 | if ($namespace == null) |
197 | 197 | { |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | * @param ReadableDocument $trackedItem |
212 | 212 | * @param string|null $namespace |
213 | 213 | */ |
214 | - protected function delObjectFromTracker(ReadableDocument &$trackedItem, $namespace = null) |
|
214 | + protected function delObjectFromTracker(ReadableDocument & $trackedItem, $namespace = null) |
|
215 | 215 | { |
216 | 216 | if ($namespace == null) |
217 | 217 | { |
@@ -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 | { |