@@ -40,7 +40,7 @@ |
||
40 | 40 | * |
41 | 41 | * @param Store $store |
42 | 42 | * @param PropertyStatisticsStore $propertyStatisticsStore |
43 | - * @param RequestOptions $requestOptions|null |
|
43 | + * @param RequestOptions $requestOptions |
|
44 | 44 | */ |
45 | 45 | public function __construct( Store $store, PropertyStatisticsStore $propertyStatisticsStore, RequestOptions $requestOptions = null ) { |
46 | 46 | $this->store = $store; |
@@ -154,6 +154,9 @@ discard block |
||
154 | 154 | return $reference === false || $reference === null ? false : $reference; |
155 | 155 | } |
156 | 156 | |
157 | + /** |
|
158 | + * @param integer $id |
|
159 | + */ |
|
157 | 160 | private function findReferenceByPropertyTable( $proptable, $id ) { |
158 | 161 | |
159 | 162 | $row = false; |
@@ -206,6 +209,9 @@ discard block |
||
206 | 209 | return $row; |
207 | 210 | } |
208 | 211 | |
212 | + /** |
|
213 | + * @param integer $id |
|
214 | + */ |
|
209 | 215 | private function findReferenceByQueryLinksTable( $id ) { |
210 | 216 | |
211 | 217 | // If the query table contains a reference then we keep the object (could |
@@ -187,6 +187,9 @@ |
||
187 | 187 | } |
188 | 188 | } |
189 | 189 | |
190 | + /** |
|
191 | + * @param string $message |
|
192 | + */ |
|
190 | 193 | private function log( $message, $context = array() ) { |
191 | 194 | |
192 | 195 | if ( $this->logger === null ) { |
@@ -96,7 +96,7 @@ |
||
96 | 96 | /** |
97 | 97 | * @since 2.2 |
98 | 98 | * |
99 | - * @return array |
|
99 | + * @return string[] |
|
100 | 100 | */ |
101 | 101 | public function getErrors() { |
102 | 102 | return $this->querySegmentListBuilder->getErrors(); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | * |
101 | 101 | * @since 2.5 |
102 | 102 | * |
103 | - * @return boolean |
|
103 | + * @return null|boolean |
|
104 | 104 | */ |
105 | 105 | public function rebuild() { |
106 | 106 | |
@@ -268,6 +268,9 @@ discard block |
||
268 | 268 | $this->doRebuildFromRows( $searchTable, $table, $pid, $rows ); |
269 | 269 | } |
270 | 270 | |
271 | + /** |
|
272 | + * @param SearchTable $searchTable |
|
273 | + */ |
|
271 | 274 | private function doRebuildFromRows( $searchTable, $table, $pid, $rows ) { |
272 | 275 | |
273 | 276 | $i = 0; |
@@ -309,6 +312,9 @@ discard block |
||
309 | 312 | $this->reportMessage( "\n" ); |
310 | 313 | } |
311 | 314 | |
315 | + /** |
|
316 | + * @param string $message |
|
317 | + */ |
|
312 | 318 | private function reportMessage( $message, $verbose = true ) { |
313 | 319 | if ( $verbose ) { |
314 | 320 | $this->messageReporter->reportMessage( $message ); |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use SMW\MediaWiki\Database; |
8 | 8 | use SMW\DIProperty; |
9 | 9 | use SMWDataItem as DataItem; |
10 | -use SMWDIBlob as DIBlob; |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * @license GNU GPL v2+ |
@@ -148,6 +148,9 @@ |
||
148 | 148 | return $text; |
149 | 149 | } |
150 | 150 | |
151 | + /** |
|
152 | + * @param string $text |
|
153 | + */ |
|
151 | 154 | private function predictLanguage( $text ) { |
152 | 155 | |
153 | 156 | if ( $this->languageDetection === array() ) { |
@@ -247,6 +247,9 @@ discard block |
||
247 | 247 | } |
248 | 248 | } |
249 | 249 | |
250 | + /** |
|
251 | + * @param string $tableName |
|
252 | + */ |
|
250 | 253 | private function doDropObsoleteIndicies( $tableName, array &$indicies ) { |
251 | 254 | |
252 | 255 | $tableName = $this->connection->tableName( $tableName, 'raw' ); |
@@ -268,6 +271,9 @@ discard block |
||
268 | 271 | } |
269 | 272 | } |
270 | 273 | |
274 | + /** |
|
275 | + * @param string $tableName |
|
276 | + */ |
|
271 | 277 | private function doCreateIndex( $tableName, $indexType, $indexName, $columns, array $indexOptions ) { |
272 | 278 | |
273 | 279 | if ( $indexType === 'FULLTEXT' ) { |
@@ -60,7 +60,7 @@ |
||
60 | 60 | /** |
61 | 61 | * @since 1.0 |
62 | 62 | * |
63 | - * @param srting $string |
|
63 | + * @param string $string |
|
64 | 64 | * @param integer $condition |
65 | 65 | * @param boolean $isDisjunctiveCondition |
66 | 66 | */ |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | /** |
100 | 100 | * @since 2.5 |
101 | 101 | * |
102 | - * @return boolean |
|
102 | + * @return boolean|null |
|
103 | 103 | */ |
104 | 104 | public function isFromCache() { |
105 | 105 | return isset( $this->contents['assert-queryresult']['isFromCache'] ) ? (bool)$this->contents['assert-queryresult']['isFromCache'] : null; |
@@ -273,6 +273,7 @@ discard block |
||
273 | 273 | /** |
274 | 274 | * @since 2.2 |
275 | 275 | * |
276 | + * @param string $id |
|
276 | 277 | * @return array |
277 | 278 | */ |
278 | 279 | public function getExpectedFormatOuputFor( $id ) { |