Total Complexity | 3 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class AkismetTestService implements TestOnly, AkismetService |
||
10 | { |
||
11 | public function __construct($apiKey, $url) |
||
|
|||
12 | { |
||
13 | if ($apiKey !== 'dummykey') { |
||
14 | throw new Exception("Invalid key"); |
||
15 | } |
||
16 | } |
||
17 | |||
18 | public function isSpam($content, $author = null, $email = null, $url = null, $permalink = null, $type = null) |
||
22 | } |
||
23 | } |
||
24 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.