1 | <?php |
||
6 | class PodsUIFieldData { |
||
7 | |||
8 | private $export_data = array(); |
||
9 | |||
10 | /** |
||
11 | * PodsFieldData constructor. |
||
12 | * |
||
13 | * @param string $field_type |
||
14 | * @param array $data |
||
15 | */ |
||
16 | public function __construct( $field_type, $data ) { |
||
21 | |||
22 | /** |
||
23 | * Sends direct output |
||
24 | */ |
||
25 | public function emit_script() { ?> |
||
28 | |||
29 | /** |
||
30 | * Provides PHP 5.2 support for the JSON_HEX_TAG param with json_encode |
||
31 | * |
||
32 | * @param string $data |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | private static function json_encode_hex_tag( $data ) { |
||
50 | } |
||
51 |
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.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.