@@ -134,6 +134,7 @@ discard block |
||
134 | 134 | * but just controls query generation. For general effect, the default namespaces |
135 | 135 | * should be set to NULL. |
136 | 136 | * |
137 | + * @param boolean $setNS |
|
137 | 138 | * @return Description|null |
138 | 139 | */ |
139 | 140 | private function getSubqueryDescription( &$setNS ) { |
@@ -242,6 +243,7 @@ discard block |
||
242 | 243 | * be the content of "[[ ... ]]". Returns NULL upon error. |
243 | 244 | * |
244 | 245 | * Parameters $setNS has the same use as in getSubqueryDescription(). |
246 | + * @param boolean $setNS |
|
245 | 247 | */ |
246 | 248 | private function getLinkDescription( &$setNS ) { |
247 | 249 | // This method is called when we encountered an opening '[['. The following |
@@ -424,6 +426,7 @@ discard block |
||
424 | 426 | * a category or property) and create a suitable description. |
425 | 427 | * The first chunk behind the "[[" has already been read and is |
426 | 428 | * passed as a parameter. |
429 | + * @param string $firstChunk |
|
427 | 430 | */ |
428 | 431 | private function getArticleDescription( $firstChunk, &$setNS ) { |
429 | 432 | $chunk = $firstChunk; |
@@ -469,6 +472,10 @@ discard block |
||
469 | 472 | return $this->finishLinkDescription( $chunk, true, $result, $setNS ); |
470 | 473 | } |
471 | 474 | |
475 | + /** |
|
476 | + * @param boolean $hasNamespaces |
|
477 | + * @param Description|null $result |
|
478 | + */ |
|
472 | 479 | private function finishLinkDescription( $chunk, $hasNamespaces, $result, &$setNS ) { |
473 | 480 | if ( is_null( $result ) ) { // no useful information or concrete error found |
474 | 481 | $this->descriptionProcessor->addErrorForMsgCode( 'smw_unexpectedpart', $chunk ); // was smw_badqueryatom |
@@ -565,6 +572,7 @@ discard block |
||
565 | 572 | /** |
566 | 573 | * Enter a new subblock in the query, which must at some time be terminated by the |
567 | 574 | * given $endstring delimiter calling popDelimiter(); |
575 | + * @param string $endstring |
|
568 | 576 | */ |
569 | 577 | private function pushDelimiter( $endstring ) { |
570 | 578 | array_push( $this->separatorStack, $endstring ); |
@@ -574,6 +582,7 @@ discard block |
||
574 | 582 | * Exit a subblock in the query ending with the given delimiter. |
575 | 583 | * If the delimiter does not match the top-most open block, false |
576 | 584 | * will be returned. Otherwise return true. |
585 | + * @param string $endstring |
|
577 | 586 | */ |
578 | 587 | private function popDelimiter( $endstring ) { |
579 | 588 | $topdelim = array_pop( $this->separatorStack ); |
@@ -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 ) ) || |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * |
146 | 146 | * @param string $text |
147 | 147 | * |
148 | - * @return text |
|
148 | + * @return string |
|
149 | 149 | */ |
150 | 150 | public static function decodeSquareBracket( $text ) { |
151 | 151 | return str_replace( array( '%5B', '%5D' ), array( '[', ']' ), $text ); |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * |
157 | 157 | * @param string $text |
158 | 158 | * |
159 | - * @return text |
|
159 | + * @return string |
|
160 | 160 | */ |
161 | 161 | public static function obscureAnnotation( $text ) { |
162 | 162 | return preg_replace_callback( |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | * |
174 | 174 | * @param string $text |
175 | 175 | * |
176 | - * @return text |
|
176 | + * @return string |
|
177 | 177 | */ |
178 | 178 | public static function removeAnnotation( $text ) { |
179 | 179 | return preg_replace_callback( |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | * |
231 | 231 | * @since 1.9 |
232 | 232 | * |
233 | - * @return array |
|
233 | + * @return string[] |
|
234 | 234 | */ |
235 | 235 | protected function getModules() { |
236 | 236 | return array( |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | /** |
101 | 101 | * @since 2.2 |
102 | 102 | * |
103 | - * @return number |
|
103 | + * @return integer |
|
104 | 104 | */ |
105 | 105 | public function getImproperValueForCount() { |
106 | 106 | return $this->propertyStatisticsStore->getUsageCount( |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | /** |
112 | 112 | * @since 1.9 |
113 | 113 | * |
114 | - * @return number |
|
114 | + * @return integer |
|
115 | 115 | */ |
116 | 116 | public function getQueryCount() { |
117 | 117 | return $this->count( '_ASK' ); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | /** |
121 | 121 | * @since 1.9 |
122 | 122 | * |
123 | - * @return number |
|
123 | + * @return integer |
|
124 | 124 | */ |
125 | 125 | public function getQuerySize() { |
126 | 126 | return $this->count( '_ASKSI' ); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | /** |
130 | 130 | * @since 1.9 |
131 | 131 | * |
132 | - * @return number |
|
132 | + * @return integer |
|
133 | 133 | */ |
134 | 134 | public function getConceptCount() { |
135 | 135 | return $this->count( '_CONC' ); |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * @since 1.9 |
140 | 140 | * |
141 | - * @return number |
|
141 | + * @return integer |
|
142 | 142 | */ |
143 | 143 | public function getSubobjectCount() { |
144 | 144 | return $this->count( DIProperty::TYPE_SUBOBJECT ); |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | /** |
148 | 148 | * @since 1.9 |
149 | 149 | * |
150 | - * @return number |
|
150 | + * @return integer |
|
151 | 151 | */ |
152 | 152 | public function getDeclaredPropertiesCount() { |
153 | 153 | return $this->count( DIProperty::TYPE_HAS_TYPE ); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | /** |
183 | 183 | * @since 1.9 |
184 | 184 | * |
185 | - * @return number |
|
185 | + * @return integer |
|
186 | 186 | */ |
187 | 187 | public function getPropertyPageCount() { |
188 | 188 | |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | * |
205 | 205 | * @since 1.9 |
206 | 206 | * |
207 | - * @return number |
|
207 | + * @return integer |
|
208 | 208 | */ |
209 | 209 | public function getPropertyUsageCount() { |
210 | 210 | $count = 0; |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | /** |
225 | 225 | * @since 1.9 |
226 | 226 | * |
227 | - * @return number |
|
227 | + * @return integer |
|
228 | 228 | */ |
229 | 229 | public function getUsedPropertiesCount() { |
230 | 230 | $count = 0; |
@@ -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( |
@@ -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 = ''; |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | * @param $property SMWDIProperty property object for which this value is made |
140 | 140 | * @param $valueString mixed user value string, or false if unknown |
141 | 141 | * @param $caption mixed user-defined caption, or false if none given |
142 | - * @param $contextPage SMWDIWikiPage that provides a context for parsing the value string, or null |
|
142 | + * @param DIWikiPage $contextPage SMWDIWikiPage that provides a context for parsing the value string, or null |
|
143 | 143 | * |
144 | 144 | * @return DataValue |
145 | 145 | */ |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * @param string $propertyName property string |
161 | 161 | * @param string $valueString user value string |
162 | 162 | * @param mixed $caption user-defined caption |
163 | - * @param SMWDIWikiPage|null $contextPage context for parsing the value string |
|
163 | + * @param null|DIWikiPage $contextPage context for parsing the value string |
|
164 | 164 | * |
165 | 165 | * @return DataValue |
166 | 166 | */ |
@@ -245,6 +245,8 @@ discard block |
||
245 | 245 | /** |
246 | 246 | * @deprecated since 2.4, use DataTypeRegistry::newPropertyObjectValueByText |
247 | 247 | * |
248 | + * @param string $propertyName |
|
249 | + * @param string $valueString |
|
248 | 250 | * @return DataValue |
249 | 251 | */ |
250 | 252 | public function newPropertyValue( $propertyName, $valueString, |
@@ -255,7 +257,7 @@ discard block |
||
255 | 257 | /** |
256 | 258 | * @since 2.4 |
257 | 259 | * |
258 | - * @param string $propertyName |
|
260 | + * @param string $propertyLabel |
|
259 | 261 | * |
260 | 262 | * @return DataValue |
261 | 263 | */ |
@@ -265,6 +267,8 @@ discard block |
||
265 | 267 | |
266 | 268 | /** |
267 | 269 | * @deprecated since 1.9, use DataTypeRegistry::registerDataType |
270 | + * @param string $id |
|
271 | + * @param string $className |
|
268 | 272 | */ |
269 | 273 | public static function registerDatatype( $id, $className, $dataItemId, $label = false ) { |
270 | 274 | DataTypeRegistry::getInstance()->registerDataType( $id, $className, $dataItemId, $label ); |
@@ -272,6 +276,8 @@ discard block |
||
272 | 276 | |
273 | 277 | /** |
274 | 278 | * @deprecated since 1.9, use DataTypeRegistry::registerDataTypeAlias |
279 | + * @param string $id |
|
280 | + * @param string $label |
|
275 | 281 | */ |
276 | 282 | public static function registerDatatypeAlias( $id, $label ) { |
277 | 283 | DataTypeRegistry::getInstance()->registerDataTypeAlias( $id, $label ); |