src/voku/helper/HtmlDomParser.php 1 location
|
@@ 174-184 (lines=11) @@
|
| 171 |
|
* |
| 172 |
|
* @return bool|mixed |
| 173 |
|
*/ |
| 174 |
|
public function __call($name, $arguments) |
| 175 |
|
{ |
| 176 |
|
$name = \strtolower($name); |
| 177 |
|
|
| 178 |
|
if (isset(self::$functionAliases[$name])) { |
| 179 |
|
return \call_user_func_array([$this, self::$functionAliases[$name]], $arguments); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
throw new \BadMethodCallException('Method does not exist: ' . $name); |
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
/** |
| 186 |
|
* @param string $name |
| 187 |
|
* @param array $arguments |
src/voku/helper/SimpleHtmlDom.php 1 location
|
@@ 92-101 (lines=10) @@
|
| 89 |
|
* @throws \BadMethodCallException |
| 90 |
|
* |
| 91 |
|
*/ |
| 92 |
|
public function __call($name, $arguments) |
| 93 |
|
{ |
| 94 |
|
$name = \strtolower($name); |
| 95 |
|
|
| 96 |
|
if (isset(self::$functionAliases[$name])) { |
| 97 |
|
return \call_user_func_array([$this, self::$functionAliases[$name]], $arguments); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
throw new BadMethodCallException('Method does not exist'); |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
/** |
| 104 |
|
* @param string $name |