@@ -47,7 +47,7 @@ |
||
47 | 47 | * node object. |
48 | 48 | * |
49 | 49 | * @param AbstractNode $node |
50 | - * @return array|Collection |
|
50 | + * @return Collection |
|
51 | 51 | */ |
52 | 52 | public function find(AbstractNode $node) |
53 | 53 | { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * new object. |
58 | 58 | * |
59 | 59 | * @param string $str |
60 | - * @return $this |
|
60 | + * @return Dom |
|
61 | 61 | */ |
62 | 62 | public static function load($str) |
63 | 63 | { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * new object. |
73 | 73 | * |
74 | 74 | * @param string $file |
75 | - * @return $this |
|
75 | + * @return Dom |
|
76 | 76 | */ |
77 | 77 | public static function loadFromFile($file) |
78 | 78 | { |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * |
89 | 89 | * @param string $url |
90 | 90 | * @param CurlInterface $curl |
91 | - * @return $this |
|
91 | + * @return Dom |
|
92 | 92 | */ |
93 | 93 | public static function loadFromUrl($url, CurlInterface $curl = null) |
94 | 94 | { |
@@ -226,9 +226,9 @@ |
||
226 | 226 | public function removeAttributes($keys) |
227 | 227 | { |
228 | 228 | $attributes = $this->getAttributes(); |
229 | - foreach($attributes as $key => $attribute) { |
|
229 | + foreach ($attributes as $key => $attribute) { |
|
230 | 230 | $key = strtolower($key); |
231 | - if(!in_array($key, $keys)) { |
|
231 | + if ( ! in_array($key, $keys)) { |
|
232 | 232 | unset($this->attr[$key]); |
233 | 233 | } |
234 | 234 | } |