Completed
Push — master ( ff2cd3...da92b9 )
by mw
236:43 queued 201:44
created
includes/export/SMW_Exporter.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 	 * represent. Returns null if this attempt failed.
404 404
 	 *
405 405
 	 * @param ExpElement $expElement
406
-	 * @return SMWDataItem or null
406
+	 * @return null|DIWikiPage or null
407 407
 	 */
408 408
 	public function findDataItemForExpElement( ExpElement $expElement ) {
409 409
 		return self::$dataItemByExpElementMatchFinder->tryToFindDataItemForExpElement( $expElement );
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 	 * must take the type of the annotated object into account for some
441 441
 	 * reason.
442 442
 	 *
443
-	 * @param $propertyKey string the Id of the special property
443
+	 * @param string $propertyKey string the Id of the special property
444 444
 	 * @param $forNamespace integer the namespace of the page which has a value for this property
445 445
 	 * @return ExpNsResource|null
446 446
 	 */
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
 	 * elements are always preferred in query answering.
621 621
 	 *
622 622
 	 * @param $dataItem SMWDataItem
623
-	 * @return ExpElement|null
623
+	 * @return ExpLiteral|null
624 624
 	 */
625 625
 	static public function getDataItemHelperExpElement( SMWDataItem $dataItem ) {
626 626
 
Please login to merge, or discard this patch.
includes/queryprinters/FeedResultPrinter.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use FeedItem;
6 6
 use ParserOptions;
7 7
 use Sanitizer;
8
-use SMWDIWikiPage;
9 8
 use SMWQueryResult;
10 9
 use TextContent;
11 10
 use Title;
Please login to merge, or discard this patch.
src/GlobalFunctions.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,6 @@  discard block
 block discarded – undo
95 95
  * $icon should be one of: 'warning' (default), 'info'.
96 96
  *
97 97
  * @param array $messages
98
- * @param string $icon Acts like an enum. Callers must ensure safety, since this value is used directly in the output.
99 98
  * @param string $seperator
100 99
  * @param boolean $escape Should the messages be escaped or not (ie when they already are)
101 100
  *
@@ -201,7 +200,7 @@  discard block
 block discarded – undo
201 200
  * @param mixed $namespace
202 201
  * @param boolean $complete
203 202
  *
204
- * @return true
203
+ * @return boolean
205 204
  *
206 205
  * @codeCoverageIgnore
207 206
  */
Please login to merge, or discard this patch.
phpunit/Integration/Query/InversePropertyRelationshipDBIntegrationTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -116,6 +116,10 @@
 block discarded – undo
116 116
 		);
117 117
 	}
118 118
 
119
+	/**
120
+	 * @param string $property
121
+	 * @param string $value
122
+	 */
119 123
 	private function newDataValueForPagePropertyValue( $property, $value ) {
120 124
 
121 125
 		$property = DIProperty::newFromUserLabel( $property );
Please login to merge, or discard this patch.
includes/queryprinters/DsvResultPrinter.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,6 @@
 block discarded – undo
81 81
 	 *
82 82
 	 * @since 1.6
83 83
 	 *
84
-	 * @param SMWQueryResult $res
85 84
 	 *
86 85
 	 * @return string
87 86
 	 */
Please login to merge, or discard this patch.
phpunit/Integration/MediaWiki/Hooks/ParserFirstCallInitIntegrationTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -168,6 +168,9 @@
 block discarded – undo
168 168
 		return $provider;
169 169
 	}
170 170
 
171
+	/**
172
+	 * @param \SMW\ParserOutput|null $parserOutput
173
+	 */
171 174
 	private function findSemanticataFromOutput( $parserOutput ) {
172 175
 
173 176
 		if ( method_exists( $parserOutput, 'getExtensionData' ) ) {
Please login to merge, or discard this patch.
src/DataValues/ErrorMsgTextValue.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 	/**
42 42
 	 * @see DataValue::loadDataItem
43 43
 	 *
44
-	 * @param SMWDataItem $dataitem
44
+	 * @param DataItem $dataItem
45 45
 	 *
46 46
 	 * @return boolean
47 47
 	 */
Please login to merge, or discard this patch.
src/Message.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	/**
61 61
 	 * @since 2.4
62 62
 	 *
63
-	 * @param $type
63
+	 * @param string $type
64 64
 	 */
65 65
 	public static function deregisterHandlerFor( $type ) {
66 66
 		unset( self::$messageHandler[$type] );
@@ -96,7 +96,6 @@  discard block
 block discarded – undo
96 96
 	 *
97 97
 	 * @since 2.5
98 98
 	 *
99
-	 * @param string|array $parameters
100 99
 	 * @param integer|null $type
101 100
 	 *
102 101
 	 * @return string
@@ -119,7 +118,7 @@  discard block
 block discarded – undo
119 118
 	 *
120 119
 	 * @since 2.5
121 120
 	 *
122
-	 * @param string $messageId
121
+	 * @param string $message
123 122
 	 *
124 123
 	 * @return boolean
125 124
 	 */
@@ -130,7 +129,6 @@  discard block
 block discarded – undo
130 129
 	/**
131 130
 	 * @since 2.5
132 131
 	 *
133
-	 * @param string $json
134 132
 	 * @param integer|null $type
135 133
 	 * @param integer|null $language
136 134
 	 *
Please login to merge, or discard this patch.
includes/datavalues/SMW_DV_Time.php 1 patch
Doc Comments   +16 added lines, -7 removed lines patch added patch discarded remove patch
@@ -186,14 +186,17 @@  discard block
 block discarded – undo
186 186
 	 * The function sets the provided call-by-ref values to the respective
187 187
 	 * values. If errors are encountered, they are added to the objects
188 188
 	 * error list and false is returned. Otherwise, true is returned.
189
-	 * @param $string string input time representation, e.g. "12 May 2007 13:45:23-3:30"
189
+	 * @param string $string string input time representation, e.g. "12 May 2007 13:45:23-3:30"
190 190
 	 * @param $datecomponents array of strings that might belong to the specification of a date
191 191
 	 * @param $calendarmodesl string if model was set in input, otherwise false
192
-	 * @param $era string '+' or '-' if provided, otherwise false
193
-	 * @param $hours integer set to a value between 0 and 24
194
-	 * @param $minutes integer set to a value between 0 and 59
195
-	 * @param $seconds integer set to a value between 0 and 59, or false if not given
196
-	 * @param $timeoffset double set to a value for time offset (e.g. 3.5), or false if not given
192
+	 * @param boolean $era string '+' or '-' if provided, otherwise false
193
+	 * @param boolean $hours integer set to a value between 0 and 24
194
+	 * @param boolean $minutes integer set to a value between 0 and 59
195
+	 * @param boolean $seconds integer set to a value between 0 and 59, or false if not given
196
+	 * @param boolean $timeoffset double set to a value for time offset (e.g. 3.5), or false if not given
197
+	 * @param boolean $calendarmodel
198
+	 * @param boolean $microseconds
199
+	 * @param boolean $timezone
197 200
 	 * @return boolean stating if the parsing succeeded
198 201
 	 * @todo This method in principle allows date parsing to be internationalized further. Should be done.
199 202
 	 */
@@ -409,7 +412,7 @@  discard block
 block discarded – undo
409 412
 	 * messages are added to the objects list of errors, and false is
410 413
 	 * returned. Otherwise, true is returned.
411 414
 	 * @param $datecomponents array of strings that might belong to the specification of a date
412
-	 * @param $date array set to result
415
+	 * @param boolean $date array set to result
413 416
 	 * @return boolean stating if successful
414 417
 	 */
415 418
 	protected function interpretDateComponents( $datecomponents, &$date ) {
@@ -807,10 +810,16 @@  discard block
 block discarded – undo
807 810
 		}
808 811
 	}
809 812
 
813
+	/**
814
+	 * @param string $value
815
+	 */
810 816
 	private function isInterpretableAsYearOnly( $value ) {
811 817
 		return strpos( $value, ' ' ) === false && is_numeric( strval( $value ) ) && ( strval( $value ) < 0 || strlen( $value ) < 6 );
812 818
 	}
813 819
 
820
+	/**
821
+	 * @param string $value
822
+	 */
814 823
 	private function isInterpretableAsTimestamp( $value ) {
815 824
 		// 1200-11-02T12:03:25 or 20120320055913
816 825
 		return ( ( strlen( $value ) > 4 && substr( $value, 10, 1 ) === 'T' ) || strlen( $value ) == 14 ) && wfTimestamp( TS_MW, $value ) !== false;
Please login to merge, or discard this patch.