1 | <?php |
||
14 | class SMGeoPolygonsValue extends SMWDataValue { |
||
15 | |||
16 | /** |
||
17 | * @see SMWDataValue::setDataItem() |
||
18 | * |
||
19 | * @param $dataitem SMWDataItem |
||
20 | * |
||
21 | * @return boolean |
||
22 | */ |
||
23 | protected function loadDataItem( SMWDataItem $dataItem ) { |
||
31 | |||
32 | /** |
||
33 | * NOTE: Do param validation. |
||
34 | * TODO: Stores as a Blob, use better data structure |
||
35 | * @see SMWDataValue::parseUserValue |
||
36 | * |
||
37 | * @since 2.0 |
||
38 | */ |
||
39 | protected function parseUserValue( $value ) { |
||
49 | |||
50 | /** |
||
51 | * @see SMWDataValue::getShortWikiText |
||
52 | * |
||
53 | * @since 2.0 |
||
54 | */ |
||
55 | public function getShortWikiText( $linked = null ) { |
||
62 | |||
63 | /** |
||
64 | * @see SMWDataValue::getShortHTMLText |
||
65 | * |
||
66 | * @since 2.0 |
||
67 | */ |
||
68 | public function getShortHTMLText( $linker = null ) { |
||
71 | |||
72 | /** |
||
73 | * @see SMWDataValue::getLongWikiText |
||
74 | * |
||
75 | * @since 2.0 |
||
76 | */ |
||
77 | public function getLongWikiText( $linker = null ) { |
||
80 | |||
81 | /** |
||
82 | * @see SMWDataValue::getLongHTMLText |
||
83 | * |
||
84 | * @since 2.0 |
||
85 | */ |
||
86 | public function getLongHTMLText( $linker = null ) { |
||
89 | |||
90 | /** |
||
91 | * @see SMWDataValue::getWikiValue |
||
92 | * |
||
93 | * @since 2.0 |
||
94 | */ |
||
95 | public function getWikiValue() { |
||
98 | |||
99 | /** |
||
100 | * @see SMWDataValue::getExportData |
||
101 | * |
||
102 | * @since 2.0 |
||
103 | */ |
||
104 | public function getExportData() { |
||
107 | } |
||
108 |
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.