src/voku/helper/HtmlDomParser.php 1 location
|
@@ 160-170 (lines=11) @@
|
157 |
|
* |
158 |
|
* @return bool|mixed |
159 |
|
*/ |
160 |
|
public function __call($name, $arguments) |
161 |
|
{ |
162 |
|
$name = \strtolower($name); |
163 |
|
|
164 |
|
if (isset(self::$functionAliases[$name])) { |
165 |
|
return \call_user_func_array([$this, self::$functionAliases[$name]], $arguments); |
166 |
|
} |
167 |
|
|
168 |
|
throw new \BadMethodCallException('Method does not exist: ' . $name); |
169 |
|
} |
170 |
|
|
171 |
|
/** |
172 |
|
* @param $name |
173 |
|
* @param $arguments |
src/voku/helper/SimpleHtmlDom.php 1 location
|
@@ 74-83 (lines=10) @@
|
71 |
|
* |
72 |
|
* @return SimpleHtmlDom|string|null |
73 |
|
*/ |
74 |
|
public function __call($name, $arguments) |
75 |
|
{ |
76 |
|
$name = \strtolower($name); |
77 |
|
|
78 |
|
if (isset(self::$functionAliases[$name])) { |
79 |
|
return \call_user_func_array([$this, self::$functionAliases[$name]], $arguments); |
80 |
|
} |
81 |
|
|
82 |
|
throw new BadMethodCallException('Method does not exist'); |
83 |
|
} |
84 |
|
|
85 |
|
/** |
86 |
|
* @param string $name |