@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use SMW\MediaWiki\Database; |
6 | 6 | use SMW\DIProperty; |
7 | -use SMWTypesValue as TypesValue; |
|
8 | 7 | use RuntimeException; |
9 | 8 | |
10 | 9 | /** |
@@ -157,6 +157,8 @@ |
||
157 | 157 | /** |
158 | 158 | * @since 1.6 |
159 | 159 | * |
160 | + * @param integer $maxsize |
|
161 | + * @param integer $maxdepth |
|
160 | 162 | * @return SomeProperty |
161 | 163 | */ |
162 | 164 | public function prune( &$maxsize, &$maxdepth, &$log ) { |
@@ -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 |
@@ -243,6 +243,9 @@ |
||
243 | 243 | $this->assertFalse( $exists ); |
244 | 244 | } |
245 | 245 | |
246 | + /** |
|
247 | + * @return \SMW\SPARQLStore\RepositoryConnection |
|
248 | + */ |
|
246 | 249 | private function createRepositoryConnectionMockToUse( $listReturnValue ) { |
247 | 250 | |
248 | 251 | $repositoryResult = $this->getMockBuilder( '\SMW\SPARQLStore\QueryEngine\RepositoryResult' ) |
@@ -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\RepositoryRedirectLookup |
@@ -118,6 +118,10 @@ |
||
118 | 118 | return $description; |
119 | 119 | } |
120 | 120 | |
121 | + /** |
|
122 | + * @param DIWikiPage $concept |
|
123 | + * @param Description $description |
|
124 | + */ |
|
121 | 125 | private function findCircularDescription( $concept, $description ) { |
122 | 126 | |
123 | 127 | if ( $description instanceof ConceptDescription ) { |
@@ -158,6 +158,9 @@ |
||
158 | 158 | ); |
159 | 159 | } |
160 | 160 | |
161 | + /** |
|
162 | + * @param Description $description |
|
163 | + */ |
|
161 | 164 | private function findCircularDescription( $concept, &$description ) { |
162 | 165 | |
163 | 166 | if ( $description instanceof ConceptDescription ) { |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * rdfs, property, xsd, so these do not have to be included in |
150 | 150 | * $extraNamespaces. |
151 | 151 | * |
152 | - * @param $vars mixed array or string, field name(s) to be retrieved, can be '*' |
|
152 | + * @param string $vars mixed array or string, field name(s) to be retrieved, can be '*' |
|
153 | 153 | * @param $where string WHERE part of the query, without surrounding { } |
154 | 154 | * @param $options array (associative) of options, e.g. array( 'LIMIT' => '10' ) |
155 | 155 | * @param $extraNamespaces array (associative) of namespaceId => namespaceUri |
@@ -566,8 +566,8 @@ discard block |
||
566 | 566 | } |
567 | 567 | |
568 | 568 | /** |
569 | - * @param $endpoint string URL of endpoint that was used |
|
570 | - * @param $sparql string query that caused the problem |
|
569 | + * @param string|false $endpoint string URL of endpoint that was used |
|
570 | + * @param string $sparql string query that caused the problem |
|
571 | 571 | */ |
572 | 572 | protected function mapHttpRequestError( $endpoint, $sparql ) { |
573 | 573 | |
@@ -583,7 +583,7 @@ discard block |
||
583 | 583 | * |
584 | 584 | * @param integer $timeout |
585 | 585 | * |
586 | - * @return SparqlDatabase |
|
586 | + * @return GenericHttpRepositoryConnector |
|
587 | 587 | */ |
588 | 588 | public function setConnectionTimeoutInSeconds( $timeout = 10 ) { |
589 | 589 | $this->httpRequest->setOption( CURLOPT_CONNECTTIMEOUT, $timeout ); |
@@ -162,6 +162,10 @@ |
||
162 | 162 | * Get the HTML for displaying subproperties of this property. This list |
163 | 163 | * is usually short and we implement no additional navigation. |
164 | 164 | * |
165 | + * @param DIProperty $property |
|
166 | + * @param RequestOptions $requestOptions |
|
167 | + * @param integer $listLimit |
|
168 | + * @param string $header |
|
165 | 169 | * @return string |
166 | 170 | */ |
167 | 171 | protected function getPropertyList( $property, $requestOptions, $listLimit, $header ) { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use SMW\Localizer; |
6 | 6 | use SMW\RequestOptions; |
7 | 7 | use SMW\StringCondition; |
8 | -use SMW\PropertyRegistry; |
|
9 | 8 | use SMWDataValue as DataValue; |
10 | 9 | use SMW\DataValues\ValueFormatters\DataValueFormatter; |
11 | 10 | use SMW\DIProperty; |
@@ -46,6 +46,10 @@ |
||
46 | 46 | * @param SemanticDataValidator |
47 | 47 | * @param IncomingSemanticDataValidator |
48 | 48 | * @param StringValidator |
49 | + * @param \SMW\Store $store |
|
50 | + * @param \SMW\Tests\Utils\Validators\SemanticDataValidator $semanticDataValidator |
|
51 | + * @param \SMW\Tests\Utils\Validators\IncomingSemanticDataValidator $incomingSemanticDataValidator |
|
52 | + * @param \SMW\Tests\Utils\Validators\StringValidator $stringValidator |
|
49 | 53 | */ |
50 | 54 | public function __construct( $store, $semanticDataValidator, $incomingSemanticDataValidator, $stringValidator ) { |
51 | 55 | $this->store = $store; |