Completed
Push — refact-v2 ( d4acae...9bddae )
by mw
03:23
created
src/ExtraPropertyAnnotator.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,12 +124,15 @@
 block discarded – undo
124 124
 	 * @since 2.0
125 125
 	 *
126 126
 	 * @param string $key
127
-	 * @param Closure $callbak
127
+	 * @param Closure $callback
128 128
 	 */
129 129
 	public function addPropertyAnnotator( $key, Closure $callback ) {
130 130
 		$this->propertyAnnotators[$key] = $callback;
131 131
 	}
132 132
 
133
+	/**
134
+	 * @param \SMW\DIWikiPage $subject
135
+	 */
133 136
 	private function canAnnotate( $subject ) {
134 137
 
135 138
 		if ( $subject === null || $subject->getTitle() === null || $subject->getTitle()->isSpecialPage() ) {
Please login to merge, or discard this patch.
src/PropertyAnnotators/LocalPropertyAnnotator.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -63,6 +63,10 @@
 block discarded – undo
63 63
 		);
64 64
 	}
65 65
 
66
+	/**
67
+	 * @param DIProperty $property
68
+	 * @param SemanticData $semanticData
69
+	 */
66 70
 	private function callOnLocalDef( $definition, $property, $semanticData ) {
67 71
 
68 72
 		if ( !isset( $definition['id'] ) || $definition['id'] !== $property->getKey() ) {
Please login to merge, or discard this patch.
src/PropertyRegistry.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 	/**
36 36
 	 * @since 1.0
37 37
 	 *
38
-	 * @param PropertyRegistry $propertyRegistry
38
+	 * @param BasePropertyRegistry $propertyRegistry
39 39
 	 *
40 40
 	 * @return boolean
41 41
 	 */
@@ -99,6 +99,9 @@  discard block
 block discarded – undo
99 99
 		}
100 100
 	}
101 101
 
102
+	/**
103
+	 * @param BasePropertyRegistry $propertyRegistry
104
+	 */
102 105
 	private function addPropertyDefinition( $propertyRegistry, $definition ) {
103 106
 
104 107
 		$visible = isset( $definition['show'] ) ? $definition['show'] : false;
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,10 +3,7 @@
 block discarded – undo
3 3
 namespace SESP;
4 4
 
5 5
 use SMW\PropertyRegistry as BasePropertyRegistry;
6
-use SMW\DataTypeRegistry;
7
-use SMW\DIProperty;
8 6
 use SMW\Message;
9
-use SMWDataItem as DataItem;
10 7
 
11 8
 /**
12 9
  * @ingroup SESP
Please login to merge, or discard this patch.