@@ -166,6 +166,7 @@ discard block |
||
166 | 166 | * |
167 | 167 | * The return value is the expected combined description. The object $currentDescription will |
168 | 168 | * also be changed (if it was non-NULL). |
169 | + * @param integer $compoundType |
|
169 | 170 | */ |
170 | 171 | private function getCompoundDescription( Description $currentDescription = null, Description $newDescription = null, $compoundType = SMW_CONJUNCTION_QUERY ) { |
171 | 172 | |
@@ -201,6 +202,10 @@ discard block |
||
201 | 202 | } |
202 | 203 | } |
203 | 204 | |
205 | + /** |
|
206 | + * @param Description $currentDescription |
|
207 | + * @param Description $newDescription |
|
208 | + */ |
|
204 | 209 | private function newCompoundDescriptionFor( $compoundType, $currentDescription, $newDescription ) { |
205 | 210 | |
206 | 211 | if ( ( ( $compoundType & SMW_CONJUNCTION_QUERY ) != 0 && ( $currentDescription instanceof Conjunction ) ) || |
@@ -177,6 +177,10 @@ discard block |
||
177 | 177 | return $resource; |
178 | 178 | } |
179 | 179 | |
180 | + /** |
|
181 | + * @param DIWikiPage $diWikiPage |
|
182 | + * @param string $modifier |
|
183 | + */ |
|
180 | 184 | private function newExpNsResource( $diWikiPage, $modifier ) { |
181 | 185 | |
182 | 186 | $importDataItem = $this->tryToFindImportDataItem( $diWikiPage, $modifier ); |
@@ -254,6 +258,9 @@ discard block |
||
254 | 258 | ); |
255 | 259 | } |
256 | 260 | |
261 | + /** |
|
262 | + * @return DataItem |
|
263 | + */ |
|
257 | 264 | private function tryToFindImportDataItem( DIWikiPage $diWikiPage, $modifier ) { |
258 | 265 | |
259 | 266 | $importDataItems = null; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\Tests\SQLStore; |
4 | 4 | |
5 | 5 | use SMW\SQLStore\PropertyTableOutdatedReferenceDisposer; |
6 | -use Title; |
|
7 | 6 | |
8 | 7 | /** |
9 | 8 | * @covers \SMW\SQLStore\PropertyTableOutdatedReferenceDisposer |
@@ -60,7 +60,8 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @since 1.7 |
62 | 62 | * |
63 | - * @param SMWDataItem $dataItem |
|
63 | + * @param DataItem $dataItem |
|
64 | + * @param PrintRequest $printRequest |
|
64 | 65 | * |
65 | 66 | * @return mixed |
66 | 67 | */ |
@@ -143,7 +144,7 @@ discard block |
||
143 | 144 | * |
144 | 145 | * @since 1.7 |
145 | 146 | * |
146 | - * @param SMWQueryResult $result |
|
147 | + * @param SMWQueryResult $queryResult |
|
147 | 148 | * |
148 | 149 | * @return array |
149 | 150 | */ |
@@ -194,6 +195,9 @@ discard block |
||
194 | 195 | return array( 'printrequests' => $printRequests, 'results' => $results); |
195 | 196 | } |
196 | 197 | |
198 | + /** |
|
199 | + * @param PrintRequest $printRequest |
|
200 | + */ |
|
197 | 201 | private static function getSerializedPrintRequestFormat( $printRequest ) { |
198 | 202 | |
199 | 203 | $serialized = array( |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | /** |
170 | 170 | * @since 2.4 |
171 | 171 | * |
172 | - * @return boolean |
|
172 | + * @return boolean|null |
|
173 | 173 | */ |
174 | 174 | public function isFromCache() { |
175 | 175 | return isset( $this->contents['queryresult']['isFromCache'] ) ? (bool)$this->contents['queryresult']['isFromCache'] : null; |
@@ -275,6 +275,7 @@ discard block |
||
275 | 275 | /** |
276 | 276 | * @since 2.2 |
277 | 277 | * |
278 | + * @param string $id |
|
278 | 279 | * @return array |
279 | 280 | */ |
280 | 281 | public function getExpectedFormatOuputFor( $id ) { |
@@ -91,6 +91,9 @@ |
||
91 | 91 | return new Conjunction( $subdescriptions ); |
92 | 92 | } |
93 | 93 | |
94 | + /** |
|
95 | + * @param \SMWDataValue $dataValue |
|
96 | + */ |
|
94 | 97 | private function newSubdescription( $dataValue, $comparator ) { |
95 | 98 | |
96 | 99 | $description = new ValueDescription( |
@@ -141,6 +141,9 @@ |
||
141 | 141 | return 'pages'; |
142 | 142 | } |
143 | 143 | |
144 | + /** |
|
145 | + * @param SMWDataValue $typeValue |
|
146 | + */ |
|
144 | 147 | private function displayExtraInformationAbout( $typeValue ) { |
145 | 148 | |
146 | 149 | $html = ''; |
@@ -29,7 +29,6 @@ |
||
29 | 29 | /** |
30 | 30 | * @see DataValue::parseUserValue |
31 | 31 | * |
32 | - * @param string $value |
|
33 | 32 | */ |
34 | 33 | protected function parseUserValue( $userValue ) { |
35 | 34 |
@@ -119,6 +119,9 @@ |
||
119 | 119 | return $text . $languagecode; |
120 | 120 | } |
121 | 121 | |
122 | + /** |
|
123 | + * @param DataValue $dataValue |
|
124 | + */ |
|
122 | 125 | private function findValueOutputFor( $type, $dataValue, $linker ) { |
123 | 126 | switch ( $type ) { |
124 | 127 | case self::VALUE: return $dataValue->getWikiValue(); |
@@ -72,6 +72,9 @@ |
||
72 | 72 | return $abbreviate && $length > 255 ? $this->getAbbreviatedText( $text, $length, $linker ) : $text; |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @param integer $length |
|
77 | + */ |
|
75 | 78 | private function getAbbreviatedText( $text, $length, $linker ) { |
76 | 79 | |
77 | 80 | if ( $linker === false || $linker === null ) { |