| Total Complexity | 8 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 2 | class Af_Fsckportal extends Plugin { |
||
| 3 | |||
| 4 | private $host; |
||
| 5 | |||
| 6 | public function about() { |
||
| 7 | return array(1.0, |
||
| 8 | "Remove feedsportal spamlinks from article content", |
||
| 9 | "fox"); |
||
| 10 | } |
||
| 11 | |||
| 12 | public function init($host) { |
||
| 13 | $this->host = $host; |
||
| 14 | |||
| 15 | $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); |
||
| 16 | } |
||
| 17 | |||
| 18 | public function hook_article_filter($article) { |
||
| 41 | } |
||
| 42 | |||
| 43 | public function api_version() { |
||
| 45 | } |
||
| 46 | |||
| 48 |
If you suppress an error, we recommend checking for the error condition explicitly: