Completed
Push — master ( ff2cd3...da92b9 )
by mw
236:43 queued 201:44
created
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.
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 1 patch
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.
src/Parser/Obfuscator.php 1 patch
Doc Comments   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 *
44 44
 	 * @param string $text
45 45
 	 *
46
-	 * @return text
46
+	 * @return string
47 47
 	 */
48 48
 	public static function removeLinkObfuscation( $text ) {
49 49
 		return str_replace(
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	 *
59 59
 	 * @param string $text
60 60
 	 *
61
-	 * @return text
61
+	 * @return string
62 62
 	 */
63 63
 	public static function encodeLinks( $text ) {
64 64
 		return str_replace(
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 	 *
74 74
 	 * @param string $text
75 75
 	 *
76
-	 * @return text
76
+	 * @return string
77 77
 	 */
78 78
 	public static function decodeSquareBracket( $text ) {
79 79
 		return str_replace( array( '%5B', '%5D' ), array( '[', ']' ), $text );
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	 *
85 85
 	 * @param string $text
86 86
 	 *
87
-	 * @return text
87
+	 * @return string
88 88
 	 */
89 89
 	public static function obfuscateAnnotation( $text ) {
90 90
 		return preg_replace_callback(
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	 *
102 102
 	 * @param string $text
103 103
 	 *
104
-	 * @return text
104
+	 * @return string
105 105
 	 */
106 106
 	public static function removeAnnotation( $text ) {
107 107
 
@@ -153,6 +153,10 @@  discard block
 block discarded – undo
153 153
 		return $caption !== false ? $caption : $value;
154 154
 	}
155 155
 
156
+	/**
157
+	 * @param string $text
158
+	 * @param InTextAnnotationParser $parser
159
+	 */
156 160
 	private static function doObfuscate( $text, $parser ) {
157 161
 
158 162
 		/**
Please login to merge, or discard this patch.
src/MediaWiki/Specials/Admin/IdTaskHandler.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,6 @@  discard block
 block discarded – undo
108 108
 
109 109
 	/**
110 110
 	 * @param integer $id
111
-	 * @param User|null $use
112 111
 	 */
113 112
 	private function doDispose( $id ) {
114 113
 
@@ -123,6 +122,9 @@  discard block
 block discarded – undo
123 122
 		$manualEntryLogger->log( 'admin', $this->user, 'Special:SMWAdmin', 'Forced removal of ID '. $id );
124 123
 	}
125 124
 
125
+	/**
126
+	 * @param integer $id
127
+	 */
126 128
 	private function getForm( $webRequest, $id ) {
127 129
 
128 130
 		$message = $this->getIdInfoAsJson( $webRequest, $id );
Please login to merge, or discard this patch.
includes/datavalues/SMW_DV_WikiPage.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@  discard block
 block discarded – undo
79 79
 	 */
80 80
 	protected $queryParameters = array();
81 81
 
82
+	/**
83
+	 * @param string $typeid
84
+	 */
82 85
 	public function __construct( $typeid ) {
83 86
 		parent::__construct( $typeid );
84 87
 		switch ( $typeid ) {
@@ -692,6 +695,9 @@  discard block
 block discarded – undo
692 695
 		return $dvWikiPage;
693 696
 	}
694 697
 
698
+	/**
699
+	 * @param DataItem $subject
700
+	 */
695 701
 	private function findDisplayTitleFor( $subject ) {
696 702
 
697 703
 		$displayTitle = '';
Please login to merge, or discard this patch.