Completed
Push — master ( ff2cd3...da92b9 )
by mw
236:43 queued 201:44
created
src/PermissionPthValidator.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -87,6 +87,9 @@  discard block
 block discarded – undo
87 87
 		return true;
88 88
 	}
89 89
 
90
+	/**
91
+	 * @param string $action
92
+	 */
90 93
 	private function checkMwNamespaceEditPermission( Title &$title, User $user, $action, &$errors ) {
91 94
 
92 95
 		// @see https://www.semantic-mediawiki.org/wiki/Help:Special_property_Allows_pattern
@@ -99,6 +102,9 @@  discard block
 block discarded – undo
99 102
 		return false;
100 103
 	}
101 104
 
105
+	/**
106
+	 * @param string $action
107
+	 */
102 108
 	private function checkPermissionOn( Title &$title, User $user, $action, &$errors ) {
103 109
 
104 110
 		// @see https://www.semantic-mediawiki.org/wiki/Help:Special_property_Is_edit_protected
Please login to merge, or discard this patch.
tests/phpunit/Unit/MediaWiki/Hooks/EditPageFormTest.php 1 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\MediaWiki\Hooks;
4 4
 
5 5
 use SMW\MediaWiki\Hooks\EditPageForm;
6
-use SMW\MediaWiki\Renderer\HtmlFormRenderer;
7 6
 use Title;
8 7
 
9 8
 /**
Please login to merge, or discard this patch.
src/MediaWiki/Renderer/HtmlFormRenderer.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -182,7 +182,6 @@  discard block
 block discarded – undo
182 182
 	/**
183 183
 	 * @since 2.1
184 184
 	 *
185
-	 * @param string $description
186 185
 	 * @param array $attributes
187 186
 	 *
188 187
 	 * @return HtmlFormRenderer
@@ -217,8 +216,8 @@  discard block
 block discarded – undo
217 216
 	/**
218 217
 	 * @since 2.1
219 218
 	 *
220
-	 * @param $level
221
-	 * @param $text
219
+	 * @param string $level
220
+	 * @param string $text
222 221
 	 *
223 222
 	 * @return HtmlFormRenderer
224 223
 	 */
Please login to merge, or discard this patch.
src/MediaWiki/Specials/PropertyLabelSimilarity/ContentsBuilder.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	/**
41 41
 	 * @since 2.5
42 42
 	 *
43
-	 * @param RequestOptions $requestOption
43
+	 * @param RequestOptions $requestOptions
44 44
 	 */
45 45
 	public function getHtml( RequestOptions $requestOptions ) {
46 46
 
@@ -85,6 +85,12 @@  discard block
 block discarded – undo
85 85
 		return $html;
86 86
 	}
87 87
 
88
+	/**
89
+	 * @param integer $limit
90
+	 * @param integer $offset
91
+	 * @param integer $count
92
+	 * @param integer $resultCount
93
+	 */
88 94
 	private function getForm( $limit, $offset, $count, $resultCount, $threshold, $type ) {
89 95
 
90 96
 		$exemptionProperty = $this->propertyLabelSimilarityLookup->getExemptionProperty();
Please login to merge, or discard this patch.
src/SQLStore/Lookup/PropertyLabelSimilarityLookup.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 *
66 66
 	 * @param integer $threshold
67 67
 	 *
68
-	 * @return boolean
68
+	 * @return boolean|null
69 69
 	 */
70 70
 	public function setThreshold( $threshold ) {
71 71
 		$this->threshold = $threshold;
@@ -229,6 +229,9 @@  discard block
 block discarded – undo
229 229
 		return md5( implode( '', $hashing ) );
230 230
 	}
231 231
 
232
+	/**
233
+	 * @param double|null $percent
234
+	 */
232 235
 	private function getSummary( DIProperty $first, DIProperty $second, $percent, $withType ) {
233 236
 
234 237
 		$summary = array();
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\DIProperty;
9 9
 use SMW\SQLStore\SQLStore;
10 10
 use SMW\Store;
11
-use SMWDIError as DIError;
12 11
 use SMW\RequestOptions;
13 12
 use SMW\PropertySpecificationLookup;
14 13
 
Please login to merge, or discard this patch.
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.