@@ -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)) { |