Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class ServiceConsoleTransport extends \Mezon\Service\ServiceTransport |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Execution result |
||
22 | */ |
||
23 | public $result; |
||
24 | |||
25 | /** |
||
26 | * Method creates parameters fetcher |
||
27 | * |
||
28 | * @return \Mezon\Service\ServiceRequestParamsInterface paremeters fetcher |
||
29 | */ |
||
30 | public function createFetcher(): \Mezon\Service\ServiceRequestParamsInterface |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Method runs router |
||
37 | */ |
||
38 | public function run(): void |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Method creates session |
||
45 | * |
||
46 | * @param bool|string $token |
||
47 | * Session token |
||
48 | */ |
||
49 | public function createSession(string $token): string |
||
54 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.