@@ -22,7 +22,7 @@ |
||
22 | 22 | * @param Parser $parser |
23 | 23 | * @param ProcessingResult $result |
24 | 24 | * |
25 | - * @return mixed |
|
25 | + * @return string |
|
26 | 26 | */ |
27 | 27 | public function handle( Parser $parser, ProcessingResult $result ) { |
28 | 28 | $parameters = $result->getParameters(); |
@@ -99,6 +99,10 @@ |
||
99 | 99 | return SMW_CATEGORY_QUERY; |
100 | 100 | } |
101 | 101 | |
102 | + /** |
|
103 | + * @param integer $maxsize |
|
104 | + * @param integer $maxdepth |
|
105 | + */ |
|
102 | 106 | public function prune( &$maxsize, &$maxdepth, &$log ) { |
103 | 107 | |
104 | 108 | if ( $maxsize >= $this->getSize() ) { |
@@ -442,7 +442,6 @@ discard block |
||
442 | 442 | * Extend the given SPARQL condition by a suitable order by variable, |
443 | 443 | * possibly adding conditions if required for the type of data. |
444 | 444 | * |
445 | - * @param Condition $sparqlCondition condition to modify |
|
446 | 445 | * @param string $mainVariable the variable that represents the value to be ordered |
447 | 446 | * @param integer $diType DataItem type id |
448 | 447 | */ |
@@ -487,6 +486,9 @@ discard block |
||
487 | 486 | } |
488 | 487 | } |
489 | 488 | |
489 | + /** |
|
490 | + * @param string $propertyKey |
|
491 | + */ |
|
490 | 492 | private function addOrderForUnknownPropertyKey( Condition &$condition, $propertyKey ) { |
491 | 493 | |
492 | 494 | if ( $propertyKey === '' ) { // order by result page sortkey |
@@ -213,6 +213,9 @@ |
||
213 | 213 | return DebugOutputFormatter::formatOutputFor( 'SPARQLStore', $entries, $query ); |
214 | 214 | } |
215 | 215 | |
216 | + /** |
|
217 | + * @param Condition $condition |
|
218 | + */ |
|
216 | 219 | private function isSingletonConditionWithElementMatch( $condition ) { |
217 | 220 | return $condition instanceof SingletonCondition && $condition->matchElement instanceof Element; |
218 | 221 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | /** |
74 | 74 | * Get the number of rows in the result object. |
75 | 75 | * |
76 | - * @return interger number of result rows |
|
76 | + * @return integer number of result rows |
|
77 | 77 | */ |
78 | 78 | public function numRows() { |
79 | 79 | return count( $this->data ); |
@@ -126,6 +126,9 @@ |
||
126 | 126 | ); |
127 | 127 | } |
128 | 128 | |
129 | + /** |
|
130 | + * @param string $xmlResultData |
|
131 | + */ |
|
129 | 132 | private function parseXml( $xmlResultData ) { |
130 | 133 | return xml_parse( $this->parser, $xmlResultData, true ); |
131 | 134 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | * @since 1.6 |
53 | 53 | * |
54 | 54 | * @param ExpNsResource $expNsResource string URI to check |
55 | - * @param boolean $existsthat is set to true if $expNsResource is in the |
|
55 | + * @param boolean|null $exists is set to true if $expNsResource is in the |
|
56 | 56 | * store; always false for blank nodes; always true for subobjects |
57 | 57 | * |
58 | 58 | * @return ExpNsResource |
@@ -403,7 +403,7 @@ |
||
403 | 403 | * |
404 | 404 | * @param string $connectionTypeId |
405 | 405 | * |
406 | - * @return mixed |
|
406 | + * @return RepositoryConnection |
|
407 | 407 | */ |
408 | 408 | public function getConnection( $connectionTypeId = 'sparql' ) { |
409 | 409 |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * @since 2.3 |
72 | 72 | * |
73 | - * @param integer $chunkSize |
|
73 | + * @param integer $triplesChunkSize |
|
74 | 74 | */ |
75 | 75 | public function setTriplesChunkSize( $triplesChunkSize ) { |
76 | 76 | $this->triplesChunkSize = (int)$triplesChunkSize; |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | /** |
149 | 149 | * @since 2.0 |
150 | 150 | * |
151 | - * @return boolean |
|
151 | + * @return null|boolean |
|
152 | 152 | */ |
153 | 153 | public function hasTriplesForUpdate() { |
154 | 154 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | /** |
163 | 163 | * @since 2.0 |
164 | 164 | * |
165 | - * @return boolean |
|
165 | + * @return boolean|null |
|
166 | 166 | */ |
167 | 167 | public static function reset() { |
168 | 168 | TurtleSerializer::reset(); |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | * @since 1.6 |
306 | 306 | * @param ExpData $expData object containing the update data |
307 | 307 | * @param $auxiliaryExpData array of SMWExpData |
308 | - * @param $expandSubject boolean controls if redirects/auxiliary data should also be sought for subject |
|
308 | + * @param boolean $expandSubject boolean controls if redirects/auxiliary data should also be sought for subject |
|
309 | 309 | * |
310 | 310 | * @return ExpData |
311 | 311 | */ |