@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | private $node; |
37 | 37 | |
38 | - public function __construct(GlHtmlNode $node,$level) { |
|
38 | + public function __construct(GlHtmlNode $node, $level) { |
|
39 | 39 | $this->node = $node; |
40 | 40 | $this->level = $level; |
41 | 41 | } |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | $links = []; |
158 | 158 | |
159 | 159 | $this->getLinksByTagAttribute("link", "href", $links); |
160 | - $this->getLinksByTagAttribute("a", "href",$links); |
|
160 | + $this->getLinksByTagAttribute("a", "href", $links); |
|
161 | 161 | $this->getLinksByTagAttribute("script", "src", $links); |
162 | 162 | $this->getLinksByTagAttribute("iframe", "src", $links); |
163 | 163 | $this->getLinksByTagAttribute("img", "src", $links); |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | $body = $this->get("body")[0]; |
236 | 236 | |
237 | 237 | $summary = []; |
238 | - $callback = function (GlHtmlNode $childNode) use (&$summary) { |
|
238 | + $callback = function(GlHtmlNode $childNode) use (&$summary) { |
|
239 | 239 | $nodeName = $childNode->getName(); |
240 | 240 | |
241 | 241 | if (preg_match('/^h(\d+)$/', $nodeName, $matches)) { |
@@ -161,7 +161,7 @@ |
||
161 | 161 | $innerHTML = ''; |
162 | 162 | $children = $this->node->childNodes; |
163 | 163 | foreach ($children as $child) { |
164 | - $innerHTML .= $child->ownerDocument->saveXML($child,LIBXML_NOEMPTYTAG); |
|
164 | + $innerHTML .= $child->ownerDocument->saveXML($child, LIBXML_NOEMPTYTAG); |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | return $innerHTML; |