@@ -77,7 +77,6 @@ discard block |
||
77 | 77 | * @since 2.4 |
78 | 78 | * |
79 | 79 | * @param string $key |
80 | - * @param $default $mixed |
|
81 | 80 | * |
82 | 81 | * @return mixed|false |
83 | 82 | */ |
@@ -124,7 +123,7 @@ discard block |
||
124 | 123 | /** |
125 | 124 | * @since 1.3 |
126 | 125 | * |
127 | - * @param Title $title |
|
126 | + * @param Title|null $title |
|
128 | 127 | * |
129 | 128 | * @return WikiPage |
130 | 129 | */ |
@@ -147,7 +146,7 @@ discard block |
||
147 | 146 | /** |
148 | 147 | * @since 1.3 |
149 | 148 | * |
150 | - * @param Title $title |
|
149 | + * @param Title|null $title |
|
151 | 150 | * |
152 | 151 | * @return User |
153 | 152 | */ |
@@ -99,6 +99,9 @@ |
||
99 | 99 | } |
100 | 100 | } |
101 | 101 | |
102 | + /** |
|
103 | + * @param DIWikiPage $subject |
|
104 | + */ |
|
102 | 105 | protected function getDataItemFromExifData( $subject, $rawExif ) { |
103 | 106 | |
104 | 107 | $containerSemanticData = $this->newContainerSemanticData( |
@@ -124,12 +124,15 @@ |
||
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() ) { |
@@ -63,6 +63,10 @@ |
||
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() ) { |
@@ -35,7 +35,7 @@ discard block |
||
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 |
||
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; |