@@ -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 | */ |
@@ -2,10 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace SESP; |
| 4 | 4 | |
| 5 | -use SESP\Annotator\ShortUrlAnnotator; |
|
| 6 | -use SESP\Annotator\ExifDataAnnotator; |
|
| 7 | -use SMW\SemanticData; |
|
| 8 | -use File; |
|
| 9 | 5 | use Title; |
| 10 | 6 | use Psr\Log\NullLogger; |
| 11 | 7 | use Psr\Log\LoggerInterface; |
@@ -99,6 +99,9 @@ |
||
| 99 | 99 | } |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | + /** |
|
| 103 | + * @param PropertyRegistry $propertyRegistry |
|
| 104 | + */ |
|
| 102 | 105 | private function addPropertyDefinition( $propertyRegistry, $definition ) { |
| 103 | 106 | |
| 104 | 107 | $visible = isset( $definition['show'] ) ? $definition['show'] : false; |
@@ -3,10 +3,7 @@ |
||
| 3 | 3 | namespace SESP; |
| 4 | 4 | |
| 5 | 5 | use SMW\PropertyRegistry; |
| 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 |
@@ -122,12 +122,14 @@ |
||
| 122 | 122 | /** |
| 123 | 123 | * @since 2.0 |
| 124 | 124 | * |
| 125 | - * @param PropertyAnnotator $propertyAnnotator |
|
| 126 | 125 | */ |
| 127 | 126 | public function addPropertyAnnotator( $key, Closure $callback ) { |
| 128 | 127 | $this->propertyAnnotators[$key] = $callback; |
| 129 | 128 | } |
| 130 | 129 | |
| 130 | + /** |
|
| 131 | + * @param \SMW\DIWikiPage $subject |
|
| 132 | + */ |
|
| 131 | 133 | private function canAnnotate( $subject ) { |
| 132 | 134 | |
| 133 | 135 | if ( $subject === null || $subject->getTitle() === null || $subject->getTitle()->isSpecialPage() ) { |
@@ -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( |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use SMWDINumber as DINumber; |
| 15 | 15 | use SMWDIBlob as DIBlob; |
| 16 | 16 | use FormatMetadata; |
| 17 | -use RuntimeException; |
|
| 18 | 17 | |
| 19 | 18 | /** |
| 20 | 19 | * @private |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace SESP\PropertyAnnotators; |
| 4 | 4 | |
| 5 | 5 | use SMW\DIProperty; |
| 6 | -use SMW\DIWikiPage; |
|
| 7 | 6 | use SMW\SemanticData; |
| 8 | 7 | use SMWDataItem as DataItem; |
| 9 | 8 | use SESP\PropertyAnnotator; |
@@ -5,8 +5,6 @@ |
||
| 5 | 5 | use SMW\DIProperty; |
| 6 | 6 | use SMW\DIWikiPage; |
| 7 | 7 | use SMW\SemanticData; |
| 8 | -use SMWDataItem as DataItem; |
|
| 9 | -use SMWDINumber as DINumber; |
|
| 10 | 8 | use SESP\PropertyAnnotator; |
| 11 | 9 | use SESP\AppFactory; |
| 12 | 10 | |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use SMW\DIProperty; |
| 6 | 6 | use SMW\SemanticData; |
| 7 | -use SMWDataItem as DataItem; |
|
| 8 | 7 | use SMWDINumber as DINumber; |
| 9 | 8 | use SESP\PropertyAnnotator; |
| 10 | 9 | use SESP\AppFactory; |