Completed
Push — master ( 07dd29...2a8480 )
by mw
409:44 queued 374:41
created
src/MediaWiki/Hooks/HookHandler.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@
 block discarded – undo
55 55
 		$this->logger = $logger;
56 56
 	}
57 57
 
58
+	/**
59
+	 * @param string $message
60
+	 */
58 61
 	protected function log( $message, $context = array() ) {
59 62
 
60 63
 		if ( $this->logger === null ) {
Please login to merge, or discard this patch.
src/PropertyAnnotatorFactory.php 2 patches
Doc Comments   -7 removed lines patch added patch discarded remove patch
@@ -36,7 +36,6 @@  discard block
 block discarded – undo
36 36
 	/**
37 37
 	 * @since 2.0
38 38
 	 *
39
-	 * @param SemanticData $semanticData
40 39
 	 * @param RedirectTargetFinder $redirectTargetFinder
41 40
 	 *
42 41
 	 * @return RedirectPropertyAnnotator
@@ -51,7 +50,6 @@  discard block
 block discarded – undo
51 50
 	/**
52 51
 	 * @since 2.0
53 52
 	 *
54
-	 * @param SemanticData $semanticData
55 53
 	 * @param PageInfo $pageInfo
56 54
 	 *
57 55
 	 * @return PredefinedPropertyAnnotator
@@ -73,7 +71,6 @@  discard block
 block discarded – undo
73 71
 	/**
74 72
 	 * @since 2.5
75 73
 	 *
76
-	 * @param SemanticData $semanticData
77 74
 	 * @param Title $title
78 75
 	 *
79 76
 	 * @return EditProtectedPropertyAnnotator
@@ -95,7 +92,6 @@  discard block
 block discarded – undo
95 92
 	/**
96 93
 	 * @since 2.0
97 94
 	 *
98
-	 * @param SemanticData $semanticData
99 95
 	 * @param string $sortkey
100 96
 	 *
101 97
 	 * @return SortKeyPropertyAnnotator
@@ -110,7 +106,6 @@  discard block
 block discarded – undo
110 106
 	/**
111 107
 	 * @since 2.4
112 108
 	 *
113
-	 * @param SemanticData $semanticData
114 109
 	 * @param string|false $displayTitle
115 110
 	 * @param string $defaultSort
116 111
 	 *
@@ -134,7 +129,6 @@  discard block
 block discarded – undo
134 129
 	/**
135 130
 	 * @since 2.0
136 131
 	 *
137
-	 * @param SemanticData $semanticData
138 132
 	 * @param array $categories
139 133
 	 *
140 134
 	 * @return CategoryPropertyAnnotator
@@ -164,7 +158,6 @@  discard block
 block discarded – undo
164 158
 	/**
165 159
 	 * @since 2.2
166 160
 	 *
167
-	 * @param SemanticData $semanticData
168 161
 	 *
169 162
 	 * @return MandatoryTypePropertyAnnotator
170 163
 	 */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 use SMW\PropertyAnnotators\RedirectPropertyAnnotator;
12 12
 use SMW\PropertyAnnotators\SortKeyPropertyAnnotator;
13 13
 use SMW\PropertyAnnotators\EditProtectedPropertyAnnotator;
14
-use SMW\Store;
15 14
 use Title;
16 15
 
17 16
 /**
Please login to merge, or discard this patch.
src/PropertyAnnotators/EditProtectedPropertyAnnotator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -132,6 +132,9 @@
 block discarded – undo
132 132
 		return isset( $restrictions[$this->editProtectionRight] );
133 133
 	}
134 134
 
135
+	/**
136
+	 * @param \SMW\DIProperty $property
137
+	 */
135 138
 	private function isEnabledProtection( $property ) {
136 139
 
137 140
 		if ( !$this->getSemanticData()->hasProperty( $property ) ) {
Please login to merge, or discard this patch.
src/Protection/EditProtectionUpdater.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -128,6 +128,9 @@  discard block
 block discarded – undo
128 128
 		$this->doUpdateRestrictions( $isEditProtected );
129 129
 	}
130 130
 
131
+	/**
132
+	 * @param SemanticData $semanticData
133
+	 */
131 134
 	private function fetchEditProtectedInfo( $semanticData ) {
132 135
 
133 136
 		// Whether or not the update was invoked by the ArticleProtectComplete hook
@@ -195,6 +198,9 @@  discard block
 block discarded – undo
195 198
 		);
196 199
 	}
197 200
 
201
+	/**
202
+	 * @param string $message
203
+	 */
198 204
 	private function log( $message, $context = array() ) {
199 205
 
200 206
 		if ( $this->logger === null ) {
Please login to merge, or discard this patch.
src/DataValues/Time/JulianDay.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	/**
35 35
 	 * @since 2.4
36 36
 	 *
37
-	 * @param integer $calendarmodel
37
+	 * @param integer $calendarModel
38 38
 	 * @param integer $year
39 39
 	 * @param integer $month
40 40
 	 * @param integer $day
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
 	 * calendar model. This calculation assumes that neither calendar
69 69
 	 * has a year 0.
70 70
 	 *
71
-	 * @param $year integer representing the year
72
-	 * @param $month integer representing the month
73
-	 * @param $day integer representing the day
74
-	 * @param $calendarmodel integer either CM_GREGORIAN or CM_JULIAN
71
+	 * @param integer $year integer representing the year
72
+	 * @param integer $month integer representing the month
73
+	 * @param integer $day integer representing the day
74
+	 * @param integer $calendarmodel integer either CM_GREGORIAN or CM_JULIAN
75 75
 	 *
76 76
 	 * @return float Julian Day number
77 77
 	 * @throws RuntimeException
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
 	 * Compute the offset for the Julian Day number from a given time.
98 98
 	 * This computation is the same for all calendar models.
99 99
 	 *
100
-	 * @param $hours integer representing the hour
101
-	 * @param $minutes integer representing the minutes
102
-	 * @param $seconds integer representing the seconds
100
+	 * @param integer $hours integer representing the hour
101
+	 * @param integer $minutes integer representing the minutes
102
+	 * @param integer $seconds integer representing the seconds
103 103
 	 *
104 104
 	 * @return float offset for a Julian Day number to get this time
105 105
 	 */
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
 	 * conversion to Gregorian needs positive JD. If this happens, wrong
115 115
 	 * values will be returned. Avoid date conversions before 10000 BCE.
116 116
 	 *
117
-	 * @param $jdValue float number of Julian Days
118
-	 * @param $calendarModel integer either CM_GREGORIAN or CM_JULIAN
117
+	 * @param double $jdValue float number of Julian Days
118
+	 * @param integer $calendarModel integer either CM_GREGORIAN or CM_JULIAN
119 119
 	 *
120 120
 	 * @return array( calendarModel, yearnumber, monthnumber, daynumber )
121 121
 	 * @throws RuntimeException
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 	 * Extract the time from a Julian Day number and return it as a string.
167 167
 	 * This conversion is the same for all calendar models.
168 168
 	 *
169
-	 * @param $jdvalue float number of Julian Days
169
+	 * @param double $jdvalue float number of Julian Days
170 170
 	 * @return array( hours, minutes, seconds )
171 171
 	 */
172 172
 	public static function JD2Time( $jdvalue ) {
Please login to merge, or discard this patch.
src/DataValues/Time/Timezone.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	 *
186 186
 	 * @param string $identifer
187 187
 	 *
188
-	 * @return false|integer
188
+	 * @return string
189 189
 	 */
190 190
 	public static function getIdByAbbreviation( $identifer ) {
191 191
 
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 	 *
209 209
 	 * @param integer $identifer
210 210
 	 *
211
-	 * @return false|string
211
+	 * @return string
212 212
 	 */
213 213
 	public static function getTimezoneLiteralById( $identifer ) {
214 214
 
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
 	 * @since 2.5
351 351
 	 *
352 352
 	 * @param DateTime &$dateTime
353
-	 * @param string|integer $identifer
353
+	 * @param integer $identifer
354 354
 	 *
355 355
 	 * @return string
356 356
 	 */
Please login to merge, or discard this patch.
tests/phpunit/Unit/DataValues/Time/TimezoneTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SMW\Tests\DataValues\Time;
4 4
 
5
-use SMW\DataItemFactory;
6 5
 use SMW\DataValues\Time\Timezone;
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
src/Query/QueryToken.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,6 @@  discard block
 block discarded – undo
108 108
 	 *
109 109
 	 * @since 2.5
110 110
 	 *
111
-	 * @param string $text
112 111
 	 */
113 112
 	public function canHighlight( $canHighlight ) {
114 113
 		$this->canHighlight = strpos( strtolower( $canHighlight ), '-hl' ) !== false;
@@ -131,6 +130,10 @@  discard block
 block discarded – undo
131 130
 		return $this->doHighlight( $text, $type, array_keys( $this->tokens ) );
132 131
 	}
133 132
 
133
+	/**
134
+	 * @param string $text
135
+	 * @param string $type
136
+	 */
134 137
 	private function doHighlight( $text, $type, $tokens ) {
135 138
 
136 139
 		if ( $type === self::HL_BOLD ) {
@@ -150,6 +153,9 @@  discard block
 block discarded – undo
150 153
 		return preg_replace( $pattern, $replacement, $text );
151 154
 	}
152 155
 
156
+	/**
157
+	 * @param string $text
158
+	 */
153 159
 	private function addTokensFromText( $text ) {
154 160
 
155 161
 		// Remove query related chars
Please login to merge, or discard this patch.
tests/phpunit/Integration/JSONScript/JsonTestCaseScriptRunnerTest.php 2 patches
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -153,6 +153,9 @@  discard block
 block discarded – undo
153 153
 		$this->doRunQueryTests( $jsonTestCaseFileHandler );
154 154
 	}
155 155
 
156
+	/**
157
+	 * @param JsonTestCaseFileHandler $jsonTestCaseFileHandler
158
+	 */
156 159
 	private function prepareTest( $jsonTestCaseFileHandler ) {
157 160
 
158 161
 		$permittedSettings = array(
@@ -206,6 +209,9 @@  discard block
 block discarded – undo
206 209
 		);
207 210
 	}
208 211
 
212
+	/**
213
+	 * @param JsonTestCaseFileHandler $jsonTestCaseFileHandler
214
+	 */
209 215
 	private function doRunBeforeTest( $jsonTestCaseFileHandler ) {
210 216
 
211 217
 		foreach ( $jsonTestCaseFileHandler->findTaskBeforeTestExecutionByType( 'maintenance-run' ) as $runner => $options ) {
@@ -224,6 +230,9 @@  discard block
 block discarded – undo
224 230
 		}
225 231
 	}
226 232
 
233
+	/**
234
+	 * @param JsonTestCaseFileHandler $jsonTestCaseFileHandler
235
+	 */
227 236
 	private function doRunParserTests( $jsonTestCaseFileHandler ) {
228 237
 
229 238
 		$this->parserTestCaseProcessor->setDebugMode(
@@ -240,6 +249,9 @@  discard block
 block discarded – undo
240 249
 		}
241 250
 	}
242 251
 
252
+	/**
253
+	 * @param JsonTestCaseFileHandler $jsonTestCaseFileHandler
254
+	 */
243 255
 	private function doRunSpecialTests( $jsonTestCaseFileHandler ) {
244 256
 
245 257
 		$this->specialPageTestCaseProcessor->setDebugMode(
@@ -256,6 +268,9 @@  discard block
 block discarded – undo
256 268
 		}
257 269
 	}
258 270
 
271
+	/**
272
+	 * @param JsonTestCaseFileHandler $jsonTestCaseFileHandler
273
+	 */
259 274
 	private function doRunRdfTests( $jsonTestCaseFileHandler ) {
260 275
 
261 276
 		// For some reason there are some random failures where
@@ -276,6 +291,9 @@  discard block
 block discarded – undo
276 291
 		}
277 292
 	}
278 293
 
294
+	/**
295
+	 * @param JsonTestCaseFileHandler $jsonTestCaseFileHandler
296
+	 */
279 297
 	private function doRunQueryTests( $jsonTestCaseFileHandler ) {
280 298
 
281 299
 		// Set query parser late to ensure that expected settings are adjusted
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use SMW\PropertySpecificationLookup;
9 9
 use SMW\Tests\JsonTestCaseScriptRunner;
10 10
 use SMW\Tests\JsonTestCaseFileHandler;
11
-use SMW\Tests\Utils\UtilityFactory;
12 11
 
13 12
 /**
14 13
  * @group semantic-mediawiki
Please login to merge, or discard this patch.