@@ -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 | } |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Main Class to manipulate dom |
|
4 | - * |
|
5 | - * PHP version 5.4 |
|
6 | - * |
|
7 | - * @category GLICER |
|
8 | - * @package GlHtml |
|
9 | - * @author Emmanuel ROECKER |
|
10 | - * @author Rym BOUCHAGOUR |
|
11 | - * @copyright 2015 GLICER |
|
12 | - * @license MIT |
|
13 | - * @link http://dev.glicer.com/ |
|
14 | - * |
|
15 | - * Created : 19/02/15 |
|
16 | - * File : GlHtml.php |
|
17 | - * |
|
18 | - */ |
|
3 | + * Main Class to manipulate dom |
|
4 | + * |
|
5 | + * PHP version 5.4 |
|
6 | + * |
|
7 | + * @category GLICER |
|
8 | + * @package GlHtml |
|
9 | + * @author Emmanuel ROECKER |
|
10 | + * @author Rym BOUCHAGOUR |
|
11 | + * @copyright 2015 GLICER |
|
12 | + * @license MIT |
|
13 | + * @link http://dev.glicer.com/ |
|
14 | + * |
|
15 | + * Created : 19/02/15 |
|
16 | + * File : GlHtml.php |
|
17 | + * |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | |
21 | 21 | namespace GlHtml; |
@@ -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; |