Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
12 | public static function getWebhook() |
||
13 | { |
||
14 | global $INPUT; |
||
15 | |||
16 | if ($INPUT->server->str('HTTP_USER_AGENT') === 'Zapier') { |
||
17 | return new Zapier(); |
||
18 | } |
||
19 | |||
20 | // TODO: we currently have no positive key for IFTTT. Find one. |
||
21 | // That would be better than just having it as default. |
||
22 | return new IFTTT(); |
||
23 | } |
||
25 |