Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
19 | class akismet_factory |
||
20 | { |
||
21 | /** @var \phpbb\config\config */ |
||
22 | protected $config; |
||
23 | |||
24 | /** |
||
25 | * Constructor |
||
26 | * |
||
27 | * Lightweight initialisation of the API key and user ID. |
||
28 | * Heavy lifting is done only if the user actually tries |
||
29 | * to post a message, new user tries to register or moderator |
||
30 | * approves post (we submit ham to Akismet service). |
||
31 | * |
||
32 | * @param \phpbb\config\config $config phpBB Config class |
||
33 | */ |
||
34 | 2 | public function __construct(\phpbb\config\config $config) |
|
35 | { |
||
36 | 2 | $this->config = $config; |
|
37 | 2 | } |
|
38 | |||
39 | /** |
||
40 | * Initialize Akismet client with board-specific data |
||
41 | * |
||
42 | * @return \Gothick\AkismetClient\Client |
||
43 | * @throws \Gothick\AkismetClient\AkismetException |
||
44 | */ |
||
45 | 2 | public function create_akismet() |
|
48 | } |
||
49 | } |
||
50 |