Completed
Push — master ( 944e8c...873a6a )
by mw
32:14
created
includes/queryprinters/ResultPrinter.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 	 *
189 189
 	 * @param $results SMWQueryResult
190 190
 	 * @param $fullParams array
191
-	 * @param $outputMode integer
191
+	 * @param integer $outputMode integer
192 192
 	 *
193 193
 	 * @return string
194 194
 	 */
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
 	/**
466 466
 	 * @see SMWIResultPrinter::getQueryMode
467 467
 	 *
468
-	 * @param $context
468
+	 * @param integer $context
469 469
 	 *
470 470
 	 * @return integer
471 471
 	 */
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
 	 *
608 608
 	 * @param ParamDefinition[] $definitions
609 609
 	 *
610
-	 * @return array
610
+	 * @return \ParamProcessor\IParamDefinition[]
611 611
 	 */
612 612
 	public function getParamDefinitions( array $definitions ) {
613 613
 		return array_merge( $definitions, $this->getParameters() );
Please login to merge, or discard this patch.
includes/SemanticData.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 	 * output, then the Semdata container will at least look as if properly
174 174
 	 * initialised (though empty).
175 175
 	 *
176
-	 * @return array
176
+	 * @return string[]
177 177
 	 */
178 178
 	public function __sleep() {
179 179
 		return array( 'mSubject', 'mPropVals', 'mProperties', 'subSemanticData', 'mHasVisibleProps', 'mHasVisibleSpecs', 'lastModified' );
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
 	 * Store a value for a given property identified by its text label
368 368
 	 * (without namespace prefix).
369 369
 	 *
370
-	 * @param $propertyName string
370
+	 * @param string $propertyName string
371 371
 	 * @param $dataItem SMWDataItem
372 372
 	 */
373 373
 	public function addPropertyValue( $propertyName, SMWDataItem $dataItem ) {
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
 	 *
593 593
 	 * @since 1.9
594 594
 	 *
595
-	 * @param string $subobjectName|null
595
+	 * @param string $subobjectName
596 596
 	 *
597 597
 	 * @return boolean
598 598
 	 */
Please login to merge, or discard this patch.
includes/SMW_Infolink.php 1 patch
Doc Comments   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
 	 *
77 77
 	 * @param string $caption The label for the link.
78 78
 	 * @param string $target The actual link target.
79
-	 * @param mixed $style CSS class of a span to embedd the link into, or false if no extra style is required.
80
-	 * @param array $params Array of parameters, format $name => $value, if any.
79
+	 * @param string|false $style CSS class of a span to embedd the link into, or false if no extra style is required.
80
+	 * @param string[] $params Array of parameters, format $name => $value, if any.
81 81
 	 *
82 82
 	 * @return SMWInfolink
83 83
 	 */
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
 	 *
126 126
 	 * @param string $caption The label for the link.
127 127
 	 * @param string $subject
128
-	 * @param string $propertyName
129
-	 * @param mixed $style CSS class of a span to embed the link into, or false if no extra style is required.
128
+	 * @param string $propertyname
129
+	 * @param string $style CSS class of a span to embed the link into, or false if no extra style is required.
130 130
 	 *
131 131
 	 * @return SMWInfolink
132 132
 	 */
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 	 *
146 146
 	 * @param string $caption The label for the link.
147 147
 	 * @param string $titleText
148
-	 * @param mixed $style CSS class of a span to embedd the link into, or false if no extra style is required.
148
+	 * @param string $style CSS class of a span to embedd the link into, or false if no extra style is required.
149 149
 	 *
150 150
 	 * @return SMWInfolink
151 151
 	 */
@@ -188,6 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
 	/**
190 190
 	 * Change the link text.
191
+	 * @param string $caption
191 192
 	 */
192 193
 	public function setCaption( $caption ) {
193 194
 		$this->mCaption = $caption;
@@ -195,6 +196,7 @@  discard block
 block discarded – undo
195 196
 
196 197
 	/**
197 198
 	 * Change the link's CSS class.
199
+	 * @param string $style
198 200
 	 */
199 201
 	public function setStyle( $style ) {
200 202
 		$this->mStyle = $style;
Please login to merge, or discard this patch.
includes/SMW_Outputs.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,6 @@  discard block
 block discarded – undo
65 65
 	 * recorded multiple times in SMWOutputs.
66 66
 	 *
67 67
 	 * @param string $id
68
-	 * @param string $item
69 68
 	 */
70 69
 	public static function requireScript( $id, $script ) {
71 70
 		self::$scripts[$id] = $script;
@@ -81,7 +80,7 @@  discard block
 block discarded – undo
81 80
 	 * Support for calling this with the old constants SMW_HEADER_STYLE
82 81
 	 * and SMW_HEADER_TOOLTIP will vanish in SMW 1.7 at the latest.
83 82
 	 *
84
-	 * @param mixed $id
83
+	 * @param string $id
85 84
 	 * @param string $item
86 85
 	 */
87 86
 	public static function requireHeadItem( $id, $item = '' ) {
Please login to merge, or discard this patch.
includes/specials/SMW_SpecialBrowse.php 1 patch
Doc Comments   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	 * @param[in] $left bool  Should properties be displayed on the left side?
152 152
 	 * @param[in] $incoming bool  Is this an incoming? Or an outgoing?
153 153
 	 *
154
-	 * @return A string containing the HTML with the factbox
154
+	 * @return string string containing the HTML with the factbox
155 155
 	 */
156 156
 	private function displayData( SMWSemanticData $data, $left = true, $incoming = false ) {
157 157
 		// Some of the CSS classes are different for the left or the right side.
@@ -245,6 +245,7 @@  discard block
 block discarded – undo
245 245
 	 * @param[in] $property SMWPropertyValue  The property this value is linked to the subject with
246 246
 	 * @param[in] $value SMWDataValue  The actual value
247 247
 	 * @param[in] $incoming bool  If this is an incoming or outgoing link
248
+	 * @param boolean $incoming
248 249
 	 *
249 250
 	 * @return string  HTML with the link to the article, browse, and search pages
250 251
 	 */
@@ -267,7 +268,7 @@  discard block
 block discarded – undo
267 268
 	/**
268 269
 	 * Displays the subject that is currently being browsed to.
269 270
 	 *
270
-	 * @return A string containing the HTML with the subject line
271
+	 * @return string string containing the HTML with the subject line
271 272
 	 */
272 273
 	private function displayHead() {
273 274
 		global $wgOut;
@@ -300,6 +301,7 @@  discard block
 block discarded – undo
300 301
 	 * Creates the HTML for the bottom bar including the links with further navigation options.
301 302
 	 *
302 303
 	 * @param[in] $more bool  Are there more inproperties to be displayed?
304
+	 * @param boolean $more
303 305
 	 * @return string  HTMl with the bottom bar
304 306
 	 */
305 307
 	private function displayBottom( $more ) {
@@ -329,6 +331,9 @@  discard block
 block discarded – undo
329 331
 	 * @param[in] $out bool  Should the linked to page include outgoing properties?
330 332
 	 * @param[in] $in bool  Should the linked to page include incoming properties?
331 333
 	 * @param[in] $offset int  What is the offset for the incoming properties?
334
+	 * @param boolean $out
335
+	 * @param boolean $in
336
+	 * @param integer $offset
332 337
 	 *
333 338
 	 * @return string  HTML with the link to this page
334 339
 	 */
@@ -418,7 +423,7 @@  discard block
 block discarded – undo
418 423
 	/**
419 424
 	 * Creates the query form in order to quickly switch to a specific article.
420 425
 	 *
421
-	 * @return A string containing the HTML for the form
426
+	 * @return string string containing the HTML for the form
422 427
 	 */
423 428
 	private function queryForm() {
424 429
 		SMWOutputs::requireResource( 'ext.smw.browse' );
@@ -445,6 +450,7 @@  discard block
 block discarded – undo
445 450
 
446 451
 	/**
447 452
 	 * FIXME MW 1.25
453
+	 * @param string $key
448 454
 	 */
449 455
 	private function addExternalHelpLinkFor( $key ) {
450 456
 
Please login to merge, or discard this patch.
includes/specials/SpecialConcepts.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 	 * @param integer $from
43 43
 	 * @param integer $until
44 44
 	 *
45
-	 * @return DIWikiPage[]
45
+	 * @return \SMWDIWikiPage[]
46 46
 	 */
47 47
 	public function getResults( $limit, $from, $until ) {
48 48
 		$description = new SomeProperty( new DIProperty( '_CONC' ), new ThingDescription() );
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use ImportReporter;
7 7
 use WikiImporter;
8 8
 use RequestContext;
9
-
10 9
 use RuntimeException;
11 10
 
12 11
 /**
Please login to merge, or discard this patch.
includes/storage/SMW_ResultArray.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
 	 *
105 105
 	 * @since 1.6
106 106
 	 *
107
-	 * @return SMWDataItem|false
107
+	 * @return null|SMWDataItem
108 108
 	 */
109 109
 	public function getNextDataItem() {
110 110
 		$this->loadContent();
Please login to merge, or discard this patch.
includes/storage/SMW_SQLHelpers.php 1 patch
Doc Comments   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@  discard block
 block discarded – undo
63 63
 	 * @note The function partly ignores the order in which fields are set up.
64 64
 	 * Only if the type of some field changes will its order be adjusted explicitly.
65 65
 	 *
66
-	 * @param string $tableName The table name. Does not need to have been passed to DatabaseBase->tableName yet.
67
-	 * @param array $columns The fields and their types the table should have.
66
+	 * @param string $rawTableName The table name. Does not need to have been passed to DatabaseBase->tableName yet.
68 67
 	 * @param DatabaseBase or Database $db
69 68
 	 * @param object $reportTo Object to report back to.
70 69
 	 */
@@ -88,7 +87,6 @@  discard block
 block discarded – undo
88 87
 	 * Creates a new database table with the specified fields.
89 88
 	 *
90 89
 	 * @param string $tableName The table name.
91
-	 * @param array $columns The fields and their types the table should have.
92 90
 	 * @param DatabaseBase|Database $db
93 91
 	 */
94 92
 	private static function createTable( $tableName, array $fields, $db ) {
@@ -116,7 +114,6 @@  discard block
 block discarded – undo
116 114
 	 * Update a table given an array of field names and field types.
117 115
 	 *
118 116
 	 * @param string $tableName The table name.
119
-	 * @param array $columns The fields and their types the table should have.
120 117
 	 * @param DatabaseBase|Database $db
121 118
 	 * @param object $reportTo Object to report back to.
122 119
 	 */
@@ -344,7 +341,7 @@  discard block
 block discarded – undo
344 341
 	 * Make sure that each of the column descriptions in the given array is
345 342
 	 * indexed by *one* index in the given DB table.
346 343
 	 *
347
-	 * @param string $tableName table name. Does not need to have been passed to DatabaseBase->tableName yet.
344
+	 * @param string $rawTableName table name. Does not need to have been passed to DatabaseBase->tableName yet.
348 345
 	 * @param array $indexes array of strings, each a comma separated list with column names to index
349 346
 	 * @param DatabaseBase|Database $db DatabaseBase or Database
350 347
 	 * @param object $reportTo object to report messages to; since 1.8
Please login to merge, or discard this patch.
includes/storage/SQLStore/SMW_Sql3SmwIds.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -637,7 +637,7 @@  discard block
 block discarded – undo
637 637
 	 *
638 638
 	 * @param integer $sid
639 639
 	 * @param DIWikiPage $subject
640
-	 * @param integer|string|null $interWiki
640
+	 * @param string $interWiki
641 641
 	 */
642 642
 	public function updateInterwikiField( $sid, DIWikiPage $subject, $interWiki = null ) {
643 643
 
@@ -891,9 +891,8 @@  discard block
 block discarded – undo
891 891
 	/**
892 892
 	 * @since 2.3
893 893
 	 *
894
-	 * @param integer $id
895 894
 	 *
896
-	 * @return string[]
895
+	 * @return DIWikiPage[]
897 896
 	 */
898 897
 	public function getDataItemPoolHashListFor( array $idlist ) {
899 898
 		return $this->byIdDataItemFinder->getDataItemPoolHashListFor( $idlist );
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace SMW\Tests;
4 4
 
5 5
 use SMW\CacheFactory;
6
-use SMW\ApplicationFactory;
7 6
 
8 7
 /**
9 8
  * @covers \SMW\CacheFactory
Please login to merge, or discard this patch.