@@ -5,7 +5,6 @@ |
||
5 | 5 | use SMW\MediaWiki\Jobs\JobBase; |
6 | 6 | use SMW\MediaWiki\Jobs\UpdateJob; |
7 | 7 | use SMW\SemanticData; |
8 | -use SMW\SQLStore\PropertyStatisticsTable; |
|
9 | 8 | use SMW\SQLStore\PropertyTableRowDiffer; |
10 | 9 | use SMW\SQLStore\EntityStore\EntitySubobjectListIterator; |
11 | 10 | use SMW\SQLStore\TableBuilder\FieldType; |
@@ -103,6 +103,10 @@ discard block |
||
103 | 103 | \Hooks::run( 'SMW::SQLStore::AfterDeleteSubjectComplete', array( $this->store, $title ) ); |
104 | 104 | } |
105 | 105 | |
106 | + /** |
|
107 | + * @param DIWikiPage $subject |
|
108 | + * @param SMW\Iterators\MappingIterator $subobjects |
|
109 | + */ |
|
106 | 110 | private function doDelete( $id, $subject, $subobjects ) { |
107 | 111 | |
108 | 112 | if ( $subject->getNamespace() === SMW_NS_CONCEPT ) { // make sure to clear caches |
@@ -142,7 +146,6 @@ discard block |
||
142 | 146 | * @see SMWStore::doDataUpdate |
143 | 147 | * |
144 | 148 | * @since 1.8 |
145 | - * @param SMWSemanticData $data |
|
146 | 149 | */ |
147 | 150 | public function doDataUpdate( SMWSemanticData $semanticData ) { |
148 | 151 | \Hooks::run( 'SMWSQLStore3::updateDataBefore', array( $this->store, $semanticData ) ); |
@@ -955,6 +958,9 @@ discard block |
||
955 | 958 | return ( $new_tid == 0 ) ? $sid : $new_tid; |
956 | 959 | } |
957 | 960 | |
961 | + /** |
|
962 | + * @param integer $redirectId |
|
963 | + */ |
|
958 | 964 | private function addToDeferredUpdate( $oldTitle, $newTitle, $redirectId ) { |
959 | 965 | |
960 | 966 | $jobFactory = ApplicationFactory::getInstance()->newJobFactory(); |
@@ -40,6 +40,9 @@ discard block |
||
40 | 40 | */ |
41 | 41 | private static $in_getSemanticData = 0; |
42 | 42 | |
43 | + /** |
|
44 | + * @param SQLStoreFactory $factory |
|
45 | + */ |
|
43 | 46 | public function __construct( SMWSQLStore3 $parentStore, $factory ) { |
44 | 47 | $this->store = $parentStore; |
45 | 48 | $this->factory = $factory; |
@@ -198,7 +201,7 @@ discard block |
||
198 | 201 | * |
199 | 202 | * @since 1.8 |
200 | 203 | * |
201 | - * @param $subject mixed DIWikiPage or null |
|
204 | + * @param null|SMWDataItem $subject mixed DIWikiPage or null |
|
202 | 205 | * @param $property SMWDIProperty |
203 | 206 | * @param $requestOptions SMWRequestOptions |
204 | 207 | * |
@@ -684,7 +687,7 @@ discard block |
||
684 | 687 | * @param SMWDataItem $value |
685 | 688 | * @param SMWRequestOptions|null $requestOptions |
686 | 689 | * |
687 | - * @return array of SMWWikiPageValue |
|
690 | + * @return SMWDataItem[] of SMWWikiPageValue |
|
688 | 691 | */ |
689 | 692 | public function getInProperties( SMWDataItem $value, SMWRequestOptions $requestOptions = null ) { |
690 | 693 |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * |
40 | 40 | * @param Wikipage $wikiPage |
41 | 41 | * |
42 | - * @return true |
|
42 | + * @return boolean |
|
43 | 43 | */ |
44 | 44 | public function process( $wikiPage ) { |
45 | 45 | |
@@ -95,6 +95,9 @@ discard block |
||
95 | 95 | return true; |
96 | 96 | } |
97 | 97 | |
98 | + /** |
|
99 | + * @param string $message |
|
100 | + */ |
|
98 | 101 | private function log( $message, $context = array() ) { |
99 | 102 | |
100 | 103 | if ( $this->logger === null ) { |
@@ -110,7 +110,6 @@ discard block |
||
110 | 110 | /** |
111 | 111 | * @since 2.4 |
112 | 112 | * |
113 | - * @param array $dependencyList |
|
114 | 113 | */ |
115 | 114 | public function deleteDependenciesFromList( array $deleteIdList ) { |
116 | 115 | |
@@ -243,6 +242,9 @@ discard block |
||
243 | 242 | return $id; |
244 | 243 | } |
245 | 244 | |
245 | + /** |
|
246 | + * @param string $message |
|
247 | + */ |
|
246 | 248 | private function log( $message, $context = array() ) { |
247 | 249 | |
248 | 250 | if ( $this->logger === null ) { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * @since 2.2 |
61 | 61 | * |
62 | - * @return QueryEngine |
|
62 | + * @return QueryEngine\QueryEngine |
|
63 | 63 | */ |
64 | 64 | public function newMasterQueryEngine() { |
65 | 65 | return $this->queryEngineFactory->newQueryEngine(); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * @since 2.2 |
70 | 70 | * |
71 | - * @return QueryEngine |
|
71 | + * @return QueryEngine\QueryEngine |
|
72 | 72 | */ |
73 | 73 | public function newSlaveQueryEngine() { |
74 | 74 | return $this->newMasterQueryEngine(); |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | /** |
422 | 422 | * @since 2.5 |
423 | 423 | * |
424 | - * @return LoggerInterface |
|
424 | + * @return \Psr\Log\LoggerInterface |
|
425 | 425 | */ |
426 | 426 | public function getLogger() { |
427 | 427 | return ApplicationFactory::getInstance()->getMediaWikiLogger(); |
@@ -38,7 +38,6 @@ |
||
38 | 38 | * @since 2.2 |
39 | 39 | * |
40 | 40 | * @param SMWSQLStore3 $store |
41 | - * @param ConceptQuerySegmentBuilder $conceptQueryResolver |
|
42 | 41 | */ |
43 | 42 | public function __construct( SMWSQLStore3 $store, ConceptQuerySegmentBuilder $conceptQuerySegmentBuilder ) { |
44 | 43 | $this->store = $store; |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | /** |
67 | 67 | * @since 2.5 |
68 | 68 | * |
69 | - * @return array |
|
69 | + * @return string[] |
|
70 | 70 | */ |
71 | 71 | public function getErrors() { |
72 | 72 | return $this->errors; |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | /** |
76 | 76 | * @since 2.5 |
77 | 77 | * |
78 | - * @return array |
|
78 | + * @return QuerySegment[] |
|
79 | 79 | */ |
80 | 80 | public function getQuerySegmentList() { |
81 | 81 | return $this->querySegmentList; |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\SQLStore\QueryEngine; |
4 | 4 | |
5 | -use SMW\DIWikiPage; |
|
6 | 5 | use SMWQuery as Query; |
7 | 6 | use SMW\MediaWiki\Database; |
8 | 7 | use SMW\SQLStore\SQLStore; |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | /** |
184 | 184 | * @since 2.5 |
185 | 185 | * |
186 | - * @param $originalClassName |
|
186 | + * @param string $originalClassName |
|
187 | 187 | * @param array $configuration |
188 | 188 | * |
189 | 189 | * @return PHPUnit_Framework_MockObject_MockObject |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | * @since 2.5 |
229 | 229 | * |
230 | 230 | * @param integer $index |
231 | - * @param string $url |
|
231 | + * @param string $text |
|
232 | 232 | * |
233 | 233 | * @return string |
234 | 234 | */ |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use SMW\ApplicationFactory; |
6 | 6 | use SMW\DataValueFactory; |
7 | 7 | use SMW\DeferredCallableUpdate; |
8 | -use SMW\Store; |
|
9 | 8 | use SMW\Localizer; |
10 | 9 | use SMW\Tests\Utils\UtilityFactory; |
11 | 10 | use SMW\Tests\Utils\Mock\ConfigurableStub; |
@@ -307,6 +307,7 @@ discard block |
||
307 | 307 | /** |
308 | 308 | * @since 2.0 |
309 | 309 | * |
310 | + * @param string $propertyTypeId |
|
310 | 311 | * @return self |
311 | 312 | * @throws PropertyDataTypeLookupExeption |
312 | 313 | * @throws InvalidArgumentException |
@@ -460,6 +461,7 @@ discard block |
||
460 | 461 | |
461 | 462 | /** |
462 | 463 | * @deprecated since 2.1, use PropertyRegistry::findPropertyIdByLabel |
464 | + * @param string $label |
|
463 | 465 | */ |
464 | 466 | public static function findPropertyID( $label, $useAlias = true ) { |
465 | 467 | return PropertyRegistry::getInstance()->findPropertyIdByLabel( $label, $useAlias ); |
@@ -493,6 +495,9 @@ discard block |
||
493 | 495 | PropertyRegistry::getInstance()->registerPropertyAlias( $id, $label ); |
494 | 496 | } |
495 | 497 | |
498 | + /** |
|
499 | + * @param string $subobjectName |
|
500 | + */ |
|
496 | 501 | private function newDIWikiPage( $dbkey, $subobjectName ) { |
497 | 502 | |
498 | 503 | // If an inverse marker is present just omit the marker so a normal |