src/voku/helper/HtmlDomParser.php 1 location
|
@@ 149-158 (lines=10) @@
|
| 146 |
|
* |
| 147 |
|
* @return bool|mixed |
| 148 |
|
*/ |
| 149 |
|
public function __call($name, $arguments) |
| 150 |
|
{ |
| 151 |
|
$name = strtolower($name); |
| 152 |
|
|
| 153 |
|
if (isset(self::$functionAliases[$name])) { |
| 154 |
|
return call_user_func_array(array($this, self::$functionAliases[$name]), $arguments); |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
/** @noinspection ExceptionsAnnotatingAndHandlingInspection */ |
| 158 |
|
throw new BadMethodCallException('Method does not exist: ' . $name); |
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
/** |
src/voku/helper/SimpleHtmlDom.php 1 location
|
@@ 76-85 (lines=10) @@
|
| 73 |
|
* |
| 74 |
|
* @throws \BadMethodCallException |
| 75 |
|
*/ |
| 76 |
|
public function __call($name, $arguments) |
| 77 |
|
{ |
| 78 |
|
$name = strtolower($name); |
| 79 |
|
|
| 80 |
|
if (isset(self::$functionAliases[$name])) { |
| 81 |
|
return call_user_func_array(array($this, self::$functionAliases[$name]), $arguments); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
throw new BadMethodCallException('Method does not exist'); |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
/** |
| 88 |
|
* @param string $name |