@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\Tests\SQLStore; |
4 | 4 | |
5 | 5 | use SMW\SQLStore\PropertyTableOutdatedReferenceDisposer; |
6 | -use Title; |
|
7 | 6 | |
8 | 7 | /** |
9 | 8 | * @covers \SMW\SQLStore\PropertyTableOutdatedReferenceDisposer |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\Tests\SQLStore; |
4 | 4 | |
5 | 5 | use SMW\SQLStore\PropertyTableOutdatedReferenceDisposer; |
6 | -use Title; |
|
7 | 6 | |
8 | 7 | /** |
9 | 8 | * @covers \SMW\SQLStore\PropertyTableOutdatedReferenceDisposer |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\Tests\SQLStore; |
4 | 4 | |
5 | 5 | use SMW\SQLStore\PropertyTableOutdatedReferenceDisposer; |
6 | -use Title; |
|
7 | 6 | |
8 | 7 | /** |
9 | 8 | * @covers \SMW\SQLStore\PropertyTableOutdatedReferenceDisposer |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use SMW\Factbox\Factbox; |
11 | 11 | use SMW\ParserData; |
12 | 12 | use SMW\SemanticData; |
13 | -use SMW\TableFormatter; |
|
14 | 13 | use SMW\Tests\Utils\Mock\CoreMockObjectRepository; |
15 | 14 | use SMW\Tests\Utils\Mock\MediaWikiMockObjectRepository; |
16 | 15 | use SMW\Tests\Utils\Mock\MockObjectBuilder; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\MediaWiki\Hooks; |
4 | 4 | |
5 | 5 | use SMW\ApplicationFactory; |
6 | -use SMW\Factbox\FactboxCache; |
|
7 | 6 | |
8 | 7 | /** |
9 | 8 | * TitleMoveComplete occurs whenever a request to move an article |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\Tests\SQLStore; |
4 | 4 | |
5 | 5 | use SMW\SQLStore\SQLStoreFactory; |
6 | -use SMW\Store; |
|
7 | 6 | use SMWSQLStore3; |
8 | 7 | |
9 | 8 | /** |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * @since 2.1 |
114 | 114 | * |
115 | - * @param array $expected |
|
115 | + * @param DIProperty[] $expected |
|
116 | 116 | * @param array $properties |
117 | 117 | */ |
118 | 118 | public function assertHasProperties( array $expected, array $properties ) { |
@@ -344,6 +344,10 @@ discard block |
||
344 | 344 | ); |
345 | 345 | } |
346 | 346 | |
347 | + /** |
|
348 | + * @param \SMWDataValue $dataValue |
|
349 | + * @param string $defaultFormatter |
|
350 | + */ |
|
347 | 351 | private function assertContainsPropertyValues( &$expected, $dataValue, $defaultFormatter, $formatterParameters = array() ) { |
348 | 352 | |
349 | 353 | if ( !isset( $expected['propertyValues'] ) ) { |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use SMWExpLiteral as ExpLiteral; |
10 | 10 | use SMWExpNsResource as ExpNsResource; |
11 | 11 | use SMWExporter as Exporter; |
12 | -use SMWExpResource as ExpResource; |
|
13 | 12 | |
14 | 13 | /** |
15 | 14 | * @covers \SMW\SPARQLStore\RedirectLookup |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @since 2.3 |
87 | 87 | * |
88 | 88 | * @param string $type |
89 | - * @param Title $title |
|
89 | + * @param Title|null $title |
|
90 | 90 | * @param array $parameters |
91 | 91 | */ |
92 | 92 | public function dispatchJobRequestFor( $type, Title $title, $parameters = array() ) { |
@@ -118,6 +118,9 @@ discard block |
||
118 | 118 | return true; |
119 | 119 | } |
120 | 120 | |
121 | + /** |
|
122 | + * @param string $type |
|
123 | + */ |
|
121 | 124 | private function getDispatchableCallbackJobFor( $type ) { |
122 | 125 | |
123 | 126 | $jobFactory = ApplicationFactory::getInstance()->newJobFactory(); |
@@ -148,6 +151,9 @@ discard block |
||
148 | 151 | return $callback; |
149 | 152 | } |
150 | 153 | |
154 | + /** |
|
155 | + * @param string $type |
|
156 | + */ |
|
151 | 157 | private function doPreliminaryCheckForType( $type, array $parameters ) { |
152 | 158 | |
153 | 159 | if ( $type !== 'SMW\ParserCachePurgeJob' && $type !== 'SMW\UpdateJob' ) { |
@@ -172,6 +178,10 @@ discard block |
||
172 | 178 | return self::$canConnectToUrl = $this->httpRequest->ping(); |
173 | 179 | } |
174 | 180 | |
181 | + /** |
|
182 | + * @param string $type |
|
183 | + * @param \Closure $dispatchableCallbackJob |
|
184 | + */ |
|
175 | 185 | private function doPostJobWith( $type, $title, $parameters, $dispatchableCallbackJob ) { |
176 | 186 | |
177 | 187 | $parameters['async-job'] = array( |