@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * @since 2.5 |
140 | 140 | * |
141 | - * @param array|string $errorMsg |
|
141 | + * @param array|string $error |
|
142 | 142 | * @param DIProperty|null $property |
143 | 143 | * |
144 | 144 | * @return DIContainer |
@@ -196,6 +196,10 @@ discard block |
||
196 | 196 | return new DIContainer( $containerSemanticData ); |
197 | 197 | } |
198 | 198 | |
199 | + /** |
|
200 | + * @param DIProperty|null $property |
|
201 | + * @param string $error |
|
202 | + */ |
|
199 | 203 | private function addToContainerSemanticData( $containerSemanticData, $property, $error ) { |
200 | 204 | |
201 | 205 | if ( $property !== null ) { |
@@ -211,6 +215,9 @@ discard block |
||
211 | 215 | ); |
212 | 216 | } |
213 | 217 | |
218 | + /** |
|
219 | + * @param string $hash |
|
220 | + */ |
|
214 | 221 | private function newContainerSemanticData( $hash ) { |
215 | 222 | |
216 | 223 | if ( $this->subject === null ) { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW; |
4 | 4 | |
5 | 5 | use SMWContainerSemanticData as ContainerSemanticData; |
6 | -use SMWDataItem as DataItem; |
|
7 | 6 | use SMWDataValue as DataValue; |
8 | 7 | use SMWDIContainer as DIContainer; |
9 | 8 | use SMWDIBlob as DIBlob; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * output, then the Semdata container will at least look as if properly |
96 | 96 | * initialised (though empty). |
97 | 97 | * |
98 | - * @return array |
|
98 | + * @return string[] |
|
99 | 99 | */ |
100 | 100 | public function __sleep() { |
101 | 101 | return array( 'subject', 'subSemanticData' ); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | /** |
145 | 145 | * @since 2.5 |
146 | 146 | * |
147 | - * @param string $subobjectName|null |
|
147 | + * @param string $subobjectName |
|
148 | 148 | * |
149 | 149 | * @return boolean |
150 | 150 | */ |
@@ -236,6 +236,10 @@ discard block |
||
236 | 236 | } |
237 | 237 | } |
238 | 238 | |
239 | + /** |
|
240 | + * @param SemanticData $semanticData |
|
241 | + * @param string $subobjectName |
|
242 | + */ |
|
239 | 243 | private function appendSubSemanticData( $semanticData, $subobjectName ) { |
240 | 244 | |
241 | 245 | if ( $this->hasSubSemanticData( $subobjectName ) ) { |
@@ -169,6 +169,9 @@ discard block |
||
169 | 169 | $this->connection->endAtomicTransaction( __METHOD__ ); |
170 | 170 | } |
171 | 171 | |
172 | + /** |
|
173 | + * @param integer $id |
|
174 | + */ |
|
172 | 175 | private function doRemoveEntityReferencesById( $id ) { |
173 | 176 | |
174 | 177 | $this->connection->delete( |
@@ -208,6 +211,9 @@ discard block |
||
208 | 211 | } |
209 | 212 | } |
210 | 213 | |
214 | + /** |
|
215 | + * @param boolean $onTransactionIdle |
|
216 | + */ |
|
211 | 217 | private function triggerCleanUpEvents( $subject, $onTransactionIdle ) { |
212 | 218 | |
213 | 219 | if ( !$subject instanceof DIWikiPage ) { |
@@ -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; |