Completed
Push — master ( 30add5...f043e7 )
by mw
14s
created
includes/export/SMW_ExportController.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -262,6 +262,7 @@  discard block
 block discarded – undo
262 262
 
263 263
 	/**
264 264
 	 * Add a given SMWDIWikiPage to the export queue if needed.
265
+	 * @param integer $recursiondepth
265 266
 	 */
266 267
 	protected function queuePage( SMWDIWikiPage $diWikiPage, $recursiondepth ) {
267 268
 		if ( !$this->isPageDone( $diWikiPage, $recursiondepth ) ) {
@@ -273,6 +274,7 @@  discard block
 block discarded – undo
273 274
 	/**
274 275
 	 * Mark an article as done while making sure that the cache used for this
275 276
 	 * stays reasonably small. Input is given as an SMWDIWikiPage object.
277
+	 * @param integer $recdepth
276 278
 	 */
277 279
 	protected function markPageAsDone( SMWDIWikiPage $di, $recdepth ) {
278 280
 		$this->markHashAsDone( $di->getHash(), $recdepth );
@@ -281,6 +283,7 @@  discard block
 block discarded – undo
281 283
 	/**
282 284
 	 * Mark a task as done while making sure that the cache used for this
283 285
 	 * stays reasonably small.
286
+	 * @param string $hash
284 287
 	 */
285 288
 	protected function markHashAsDone( $hash, $recdepth ) {
286 289
 		if ( count( $this->element_done ) >= self::MAX_CACHE_SIZE ) {
@@ -298,7 +301,6 @@  discard block
 block discarded – undo
298 301
 	/**
299 302
 	 * Check if the given object has already been serialised at sufficient
300 303
 	 * recursion depth.
301
-	 * @param SMWDIWikiPage $st specifying the object to check
302 304
 	 *
303 305
 	 * @return boolean
304 306
 	 */
@@ -323,6 +325,7 @@  discard block
 block discarded – undo
323 325
 	 * We make a copy of the object since we may want to add more data later on
324 326
 	 * and we do not want to modify the store's result which may be used for
325 327
 	 * caching purposes elsewhere.
328
+	 * @param boolean $core_props_only
326 329
 	 */
327 330
 	protected function getSemanticData( SMWDIWikiPage $diWikiPage, $core_props_only ) {
328 331
 
@@ -489,6 +492,8 @@  discard block
 block discarded – undo
489 492
 
490 493
 	/**
491 494
 	 * @since 2.0 made protected; use printAllToFile or printAllToOutput
495
+	 * @param integer $delay
496
+	 * @param integer $delayeach
492 497
 	 */
493 498
 	protected function printAll( $ns_restriction = false, $delay, $delayeach ) {
494 499
 		$linkCache = LinkCache::singleton();
@@ -730,7 +735,7 @@  discard block
 block discarded – undo
730 735
 	 * requires the namespace to be different from Category, Property, and
731 736
 	 * Type; "false" means "no restriction".
732 737
 	 *
733
-	 * @param $res mixed encoding the restriction as described above
738
+	 * @param boolean $res mixed encoding the restriction as described above
734 739
 	 * @param $ns integer the namespace constant to be checked
735 740
 	 *
736 741
 	 * @return boolean
Please login to merge, or discard this patch.
includes/export/SMW_Serializer.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,6 +227,7 @@  discard block
 block discarded – undo
227 227
 	/**
228 228
 	 * State that a certain declaration is needed. The method checks if the
229 229
 	 * declaration is already available, and records a todo otherwise.
230
+	 * @param integer $decltype
230 231
 	 */
231 232
 	protected function requireDeclaration( SMWExpResource $resource, $decltype ) {
232 233
 		// Do not declare predefined OWL language constructs:
@@ -282,7 +283,7 @@  discard block
 block discarded – undo
282 283
 	 * the given element has been declared to has the given type.
283 284
 	 *
284 285
 	 * @param $element SMWExpResource specifying the element to update
285
-	 * @param $typeflag integer specifying the type (e.g. SMW_SERIALIZER_DECL_CLASS)
286
+	 * @param integer $typeflag integer specifying the type (e.g. SMW_SERIALIZER_DECL_CLASS)
286 287
 	 */
287 288
 	protected function declarationDone( SMWExpResource $element, $typeflag ) {
288 289
 		$name = $element->getUri();
Please login to merge, or discard this patch.
includes/export/SMW_Serializer_RDFXML.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 	 * @param $expResourceProperty SMWExpNsResource the property to use
196 196
 	 * @param $expResource SMWExpResource the data value to use
197 197
 	 * @param $indent string specifying a prefix for indentation (usually a sequence of tabs)
198
-	 * @param $isClassTypeProp boolean whether the resource must be declared as a class
198
+	 * @param boolean $isClassTypeProp boolean whether the resource must be declared as a class
199 199
 	 */
200 200
 	protected function serializeExpResource( SMWExpNsResource $expResourceProperty, SMWExpResource $expResource, $indent, $isClassTypeProp ) {
201 201
 		$this->post_ns_buffer .= $indent . '<' . $expResourceProperty->getQName();
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 	 * @param $expResourceProperty SMWExpNsResource the property to use
222 222
 	 * @param $expResource array of (SMWExpResource or SMWExpData)
223 223
 	 * @param $indent string specifying a prefix for indentation (usually a sequence of tabs)
224
-	 * @param $isClassTypeProp boolean whether the resource must be declared as a class
224
+	 * @param boolean $isClassTypeProp boolean whether the resource must be declared as a class
225 225
 	 *
226 226
 	 * @bug The $isClassTypeProp parameter is not properly taken into account.
227 227
 	 * @bug Individual resources are not serialised properly.
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 	 * DTD entity declarations in XML. Namely, this require the percent sign
249 249
 	 * to be replaced.
250 250
 	 *
251
-	 * @param $string string to be escaped
251
+	 * @param string $string string to be escaped
252 252
 	 * @return string
253 253
 	 */
254 254
 	protected function makeValueEntityString( $string ) {
Please login to merge, or discard this patch.
includes/export/SMW_Serializer_Turtle.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
 	 * increased indentation.
141 141
 	 *
142 142
 	 * @param $data SMWExpData containing the data to be serialised.
143
-	 * @param $indent string specifying a prefix for indentation (usually a sequence of tabs)
143
+	 * @param string $indent string specifying a prefix for indentation (usually a sequence of tabs)
144 144
 	 */
145 145
 	protected function serializeNestedExpData( SMWExpData $data, $indent ) {
146 146
 		if ( count( $data->getProperties() ) == 0 ) {
Please login to merge, or discard this patch.
includes/formatters/MessageFormatter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,6 +125,7 @@  discard block
 block discarded – undo
125 125
 	 *
126 126
 	 * @since 1.9
127 127
 	 *
128
+	 * @param string $type
128 129
 	 * @return MessageFormatter
129 130
 	 */
130 131
 	public function setType( $type ) {
@@ -225,7 +226,6 @@  discard block
 block discarded – undo
225 226
 	 *
226 227
 	 * @since 1.9
227 228
 	 *
228
-	 * @param boolean $escape
229 229
 	 * @param boolean $html
230 230
 	 *
231 231
 	 * @return string
Please login to merge, or discard this patch.
includes/parserhooks/AskParserFunction.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,6 +67,7 @@  discard block
 block discarded – undo
67 67
 	 *
68 68
 	 * @since 1.9
69 69
 	 *
70
+	 * @param boolean $mode
70 71
 	 * @return AskParserFunction
71 72
 	 */
72 73
 	public function setShowMode( $mode ) {
@@ -79,7 +80,7 @@  discard block
 block discarded – undo
79 80
 	 *
80 81
 	 * @since 1.9
81 82
 	 *
82
-	 * @return string|null
83
+	 * @return string
83 84
 	 */
84 85
 	public function isQueryDisabled() {
85 86
 		return $this->messageFormatter->addFromKey( 'smw_iq_disabled' )->getHtml();
@@ -98,9 +99,8 @@  discard block
 block discarded – undo
98 99
 	 *
99 100
 	 * @since 1.9
100 101
 	 *
101
-	 * @param array $params
102 102
 	 *
103
-	 * @return string|null
103
+	 * @return string
104 104
 	 */
105 105
 	public function parse( array $rawParams ) {
106 106
 
@@ -187,6 +187,9 @@  discard block
 block discarded – undo
187 187
 		return $result;
188 188
 	}
189 189
 
190
+	/**
191
+	 * @param \SMWQuery $query
192
+	 */
190 193
 	private function createQueryProfile( $query, $format, $duration ) {
191 194
 
192 195
 		// In case of an query error add a marker to the subject for
Please login to merge, or discard this patch.
includes/parserhooks/ShowParserFunction.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,9 +50,8 @@  discard block
 block discarded – undo
50 50
 	 *
51 51
 	 * @since 1.9
52 52
 	 *
53
-	 * @param array $params
54 53
 	 *
55
-	 * @return string|null
54
+	 * @return string
56 55
 	 */
57 56
 	public function parse( array $rawParams ) {
58 57
 
@@ -73,7 +72,7 @@  discard block
 block discarded – undo
73 72
 	 *
74 73
 	 * @since 1.9
75 74
 	 *
76
-	 * @return string|null
75
+	 * @return string
77 76
 	 */
78 77
 	public function isQueryDisabled() {
79 78
 		return $this->messageFormatter->addFromKey( 'smw_iq_disabled' )->getHtml();
Please login to merge, or discard this patch.
includes/parserhooks/SubobjectParserFunction.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SMW;
4 4
 
5
-use Parser;
6
-
7 5
 /**
8 6
  * Provides the {{#subobject}} parser function
9 7
  *
Please login to merge, or discard this patch.
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
 	/**
85 85
 	 * @since 1.9
86 86
 	 *
87
-	 * @param ParserParameterProcessor $params
87
+	 * @param ParserParameterProcessor $parameters
88 88
 	 *
89
-	 * @return string|null
89
+	 * @return string
90 90
 	 */
91 91
 	public function parse( ParserParameterProcessor $parameters ) {
92 92
 
@@ -202,6 +202,9 @@  discard block
 block discarded – undo
202 202
 		return $parameters;
203 203
 	}
204 204
 
205
+	/**
206
+	 * @param \SMWContainerSemanticData $semanticData
207
+	 */
205 208
 	private function doAugmentSortKeyForWhenDisplayTitleIsAccessible( $semanticData ) {
206 209
 
207 210
 		$sortkey = new DIProperty( DIProperty::TYPE_SORTKEY );
@@ -221,6 +224,9 @@  discard block
 block discarded – undo
221 224
 		);
222 225
 	}
223 226
 
227
+	/**
228
+	 * @param DIWikiPage $subject
229
+	 */
224 230
 	private function addErrorWithMsg( $subject, $errorMsg ) {
225 231
 
226 232
 		$error = new Error( $subject );
Please login to merge, or discard this patch.
includes/query/SMW_QueryProcessor.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -165,7 +165,6 @@  discard block
 block discarded – undo
165 165
 	 * @since 1.7
166 166
 	 *
167 167
 	 * @param array $sortParam
168
-	 * @param array $orders
169 168
 	 * @param string $defaultSort
170 169
 	 *
171 170
 	 * @return array ( keys => array(), errors => array() )
@@ -473,9 +472,9 @@  discard block
 block discarded – undo
473 472
 	 * printout requests for the query results.
474 473
 	 *
475 474
 	 * @param string $queryString
476
-	 * @param array $params These need to be the result of a list fed to getProcessedParams
475
+	 * @param Param[] $params These need to be the result of a list fed to getProcessedParams
477 476
 	 * @param $extraPrintouts
478
-	 * @param $outputMode
477
+	 * @param integer $outputMode
479 478
 	 * @param $context
480 479
 	 *
481 480
 	 * @return string
@@ -587,7 +586,7 @@  discard block
 block discarded – undo
587 586
 	 *
588 587
 	 * @since 1.6.2, return element type changed in 1.8
589 588
 	 *
590
-	 * @return IParamDefinition[]
589
+	 * @return ParamProcessor\IParamDefinition[]
591 590
 	 */
592 591
 	public static function getParameters() {
593 592
 		$params = array();
Please login to merge, or discard this patch.