Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class InverseDocumentFrequency |
||
12 | { |
||
13 | /** |
||
14 | * @var \PDO |
||
15 | */ |
||
16 | protected $dbHandle; |
||
17 | protected $documentCount; |
||
18 | |||
19 | /** |
||
20 | * InverseDocumentFrequency constructor. |
||
21 | * |
||
22 | * @param \PDO $dbHandle |
||
23 | * @param int $documentCount |
||
24 | */ |
||
25 | public function __construct($dbHandle, $documentCount) |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Formula to calculate: |
||
33 | * idf(t) = 1 + log ( totalDocuments / (documentsThatContainTheTerm + 1)) |
||
34 | * @throws \Exception |
||
35 | */ |
||
36 | public function execute() |
||
60 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.