Completed
Push — master ( 7b9b22...6b6f7b )
by mw
149:46 queued 114:56
created
src/InTextAnnotationParser.php 1 patch
Doc Comments   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 	 *
191 191
 	 * @param string $text
192 192
 	 *
193
-	 * @return text
193
+	 * @return string
194 194
 	 */
195 195
 	public static function decodeSquareBracket( $text ) {
196 196
 		return Obfuscator::decodeSquareBracket( $text );
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 	 *
202 202
 	 * @param string $text
203 203
 	 *
204
-	 * @return text
204
+	 * @return string
205 205
 	 */
206 206
 	public static function obfuscateAnnotation( $text ) {
207 207
 		return Obfuscator::obfuscateAnnotation( $text );
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 	 *
213 213
 	 * @param string $text
214 214
 	 *
215
-	 * @return text
215
+	 * @return string
216 216
 	 */
217 217
 	public static function removeAnnotation( $text ) {
218 218
 		return Obfuscator::removeAnnotation( $text );
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 	 *
255 255
 	 * @since 1.9
256 256
 	 *
257
-	 * @return array
257
+	 * @return string[]
258 258
 	 */
259 259
 	protected function getModules() {
260 260
 		return array(
@@ -412,6 +412,7 @@  discard block
 block discarded – undo
412 412
 	 * @since 1.9
413 413
 	 *
414 414
 	 * @param array $properties
415
+	 * @param string $value
415 416
 	 *
416 417
 	 * @return string
417 418
 	 */
@@ -481,6 +482,9 @@  discard block
 block discarded – undo
481 482
 		return $this->applicationFactory->getNamespaceExaminer()->isSemanticEnabled( $title->getNamespace() );
482 483
 	}
483 484
 
485
+	/**
486
+	 * @param DIWikiPage $subject
487
+	 */
484 488
 	private function getPropertyLink( $subject, $properties, $value, $valueCaption ) {
485 489
 
486 490
 		// #1855
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
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 	 *
40 40
 	 * @param string $text
41 41
 	 *
42
-	 * @return text
42
+	 * @return string
43 43
 	 */
44 44
 	public static function removeLinkObfuscation( $text ) {
45 45
 		return str_replace(
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 	 *
55 55
 	 * @param string $text
56 56
 	 *
57
-	 * @return text
57
+	 * @return string
58 58
 	 */
59 59
 	public static function encodeLinks( $text ) {
60 60
 		return str_replace(
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	 *
70 70
 	 * @param string $text
71 71
 	 *
72
-	 * @return text
72
+	 * @return string
73 73
 	 */
74 74
 	public static function decodeSquareBracket( $text ) {
75 75
 		return str_replace( array( '%5B', '%5D' ), array( '[', ']' ), $text );
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	 *
81 81
 	 * @param string $text
82 82
 	 *
83
-	 * @return text
83
+	 * @return string
84 84
 	 */
85 85
 	public static function obfuscateAnnotation( $text ) {
86 86
 		return preg_replace_callback(
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	 *
98 98
 	 * @param string $text
99 99
 	 *
100
-	 * @return text
100
+	 * @return string
101 101
 	 */
102 102
 	public static function removeAnnotation( $text ) {
103 103
 		return preg_replace_callback(
@@ -144,6 +144,10 @@  discard block
 block discarded – undo
144 144
 		return $caption !== false ? $caption : $value;
145 145
 	}
146 146
 
147
+	/**
148
+	 * @param string $text
149
+	 * @param InTextAnnotationParser $parser
150
+	 */
147 151
 	private static function doObfuscate( $text, $parser ) {
148 152
 
149 153
 		// Find all [[ ... ]]
Please login to merge, or discard this patch.