Completed
Push — master ( ff2cd3...da92b9 )
by mw
236:43 queued 201:44
created
src/InTextAnnotationParser.php 1 patch
Doc Comments   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 	 *
182 182
 	 * @param string $text
183 183
 	 *
184
-	 * @return text
184
+	 * @return string
185 185
 	 */
186 186
 	public static function decodeSquareBracket( $text ) {
187 187
 		return Obfuscator::decodeSquareBracket( $text );
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 	 *
193 193
 	 * @param string $text
194 194
 	 *
195
-	 * @return text
195
+	 * @return string
196 196
 	 */
197 197
 	public static function obfuscateAnnotation( $text ) {
198 198
 		return Obfuscator::obfuscateAnnotation( $text );
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 	 *
204 204
 	 * @param string $text
205 205
 	 *
206
-	 * @return text
206
+	 * @return string
207 207
 	 */
208 208
 	public static function removeAnnotation( $text ) {
209 209
 		return Obfuscator::removeAnnotation( $text );
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 	 *
246 246
 	 * @since 1.9
247 247
 	 *
248
-	 * @return array
248
+	 * @return string[]
249 249
 	 */
250 250
 	protected function getModules() {
251 251
 		return array(
@@ -326,6 +326,8 @@  discard block
 block discarded – undo
326 326
 	 * @since 1.9
327 327
 	 *
328 328
 	 * @param array $properties
329
+	 * @param DIWikiPage $subject
330
+	 * @param string $value
329 331
 	 *
330 332
 	 * @return string
331 333
 	 */
@@ -389,6 +391,10 @@  discard block
 block discarded – undo
389 391
 		return $this->applicationFactory->getNamespaceExaminer()->isSemanticEnabled( $title->getNamespace() );
390 392
 	}
391 393
 
394
+	/**
395
+	 * @param DIWikiPage $subject
396
+	 * @param string $value
397
+	 */
392 398
 	private function getPropertyLink( $subject, $properties, $value, $valueCaption ) {
393 399
 
394 400
 		// #1855
Please login to merge, or discard this patch.
src/ParserFunctions/InfoParserFunction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 	 * @param Parser $parser
32 32
 	 * @param ProcessingResult $result
33 33
 	 *
34
-	 * @return mixed
34
+	 * @return string
35 35
 	 */
36 36
 	public function handle( Parser $parser, ProcessingResult $result ) {
37 37
 		if ( $result->hasFatal() ) {
Please login to merge, or discard this patch.
tests/phpunit/Benchmark/PageEditCopyBenchmarkRunner.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,6 @@
 block discarded – undo
74 74
 	/**
75 75
 	 * @since 2.5
76 76
 	 *
77
-	 * @param integer|null $copyCount
78 77
 	 */
79 78
 	public function setEditRepetitionCount( $editRepetitionCount = null ) {
80 79
 		$this->editRepetitionCount = $editRepetitionCount;
Please login to merge, or discard this patch.
tests/phpunit/Benchmark/PageImportBenchmarkRunner.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -96,6 +96,9 @@
 block discarded – undo
96 96
 		}
97 97
 	}
98 98
 
99
+	/**
100
+	 * @param string $file
101
+	 */
99 102
 	private function doXmlImport( $file, array $case ) {
100 103
 
101 104
 		$this->xmlImportRunner->setFile( $file );
Please login to merge, or discard this patch.
tests/phpunit/Benchmark/QueryBenchmarkRunner.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -101,6 +101,9 @@
 block discarded – undo
101 101
 		);
102 102
 	}
103 103
 
104
+	/**
105
+	 * @param Query $query
106
+	 */
104 107
 	private function doQuery( array $case, $query ) {
105 108
 
106 109
 		$this->benchmarker->clear();
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,6 @@
 block discarded – undo
8 8
 use SMWQuery as Query;
9 9
 use SMW\Store;
10 10
 use SMWQueryParser as QueryParser;
11
-use SMWQueryResult as QueryResult;
12
-use Title;
13 11
 use RuntimeException;
14 12
 
15 13
 /**
Please login to merge, or discard this patch.
tests/phpunit/Utils/Runners/XmlImportRunner.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@  discard block
 block discarded – undo
31 31
 	 */
32 32
 	private $testEnvironment;
33 33
 
34
+	/**
35
+	 * @param string $file
36
+	 */
34 37
 	public function __construct( $file = null ) {
35 38
 		$this->file = $file;
36 39
 		$this->testEnvironment = new TestEnvironment();
@@ -130,7 +133,7 @@  discard block
 block discarded – undo
130 133
 	}
131 134
 
132 135
 	/**
133
-	 * @return integer
136
+	 * @return double
134 137
 	 */
135 138
 	public function getElapsedImportTimeInSeconds() {
136 139
 		return round( $this->importTime, 7 );
@@ -145,6 +148,9 @@  discard block
 block discarded – undo
145 148
 		return $this->requestContext;
146 149
 	}
147 150
 
151
+	/**
152
+	 * @param string $file
153
+	 */
148 154
 	private function assertThatFileIsReadableOrThrowException( $file ) {
149 155
 
150 156
 		$file = str_replace( array( '\\', '/' ), DIRECTORY_SEPARATOR, $file );
Please login to merge, or discard this patch.
src/PropertySpecificationReqExaminer.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,6 @@  discard block
 block discarded – undo
37 37
 	 * @since 2.5
38 38
 	 *
39 39
 	 * @param Store $store
40
-	 * @param DIProperty $property
41 40
 	 */
42 41
 	public function __construct( Store $store ) {
43 42
 		$this->store = $store;
@@ -84,6 +83,7 @@  discard block
 block discarded – undo
84 83
 	/**
85 84
 	 * A violation occurs when a predefined property contains a `Has type` annotation
86 85
 	 * that is incompatible with the default type.
86
+	 * @param DIProperty $property
87 87
 	 */
88 88
 	private function checkOnTypeForPredefinedProperty( $property ) {
89 89
 
@@ -115,6 +115,7 @@  discard block
 block discarded – undo
115 115
 	/**
116 116
 	 * A violation occurs when a Reference or Record typed property does not denote
117 117
 	 * a `Has fields` declaration.
118
+	 * @param DIProperty $property
118 119
 	 */
119 120
 	private function checkOnFieldList( $property ) {
120 121
 
@@ -134,6 +135,7 @@  discard block
 block discarded – undo
134 135
 	/**
135 136
 	 * A violation occurs when the External Identifier typed property does not declare
136 137
 	 * a `External formatter URI` declaration.
138
+	 * @param DIProperty $property
137 139
 	 */
138 140
 	private function checkOnExternalFormatterUri( $property ) {
139 141
 
Please login to merge, or discard this patch.
src/PropertyHierarchyLookup.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -160,6 +160,11 @@  discard block
 block discarded – undo
160 160
 		return $this->doFind( '_SUBC', $category->getDBKey(), $category, new RequestOptions() );
161 161
 	}
162 162
 
163
+	/**
164
+	 * @param string $id
165
+	 * @param string $key
166
+	 * @param RequestOptions $requestOptions
167
+	 */
163 168
 	private function doFind( $id, $key, DIWikiPage $subject, $requestOptions ) {
164 169
 
165 170
 		$key = $id . '#' . $key . '#' . md5( $requestOptions->getHash() );
@@ -184,6 +189,9 @@  discard block
 block discarded – undo
184 189
 		return $result;
185 190
 	}
186 191
 
192
+	/**
193
+	 * @param string $message
194
+	 */
187 195
 	private function log( $message, $context = array() ) {
188 196
 
189 197
 		if ( $this->logger === null ) {
Please login to merge, or discard this patch.
src/RequestOptions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 	 *
89 89
 	 * @since 1.0
90 90
 	 *
91
-	 * @return array
91
+	 * @return StringCondition[]
92 92
 	 */
93 93
 	public function getStringConditions() {
94 94
 		return $this->stringConditions;
Please login to merge, or discard this patch.