@@ -96,6 +96,9 @@ |
||
96 | 96 | } |
97 | 97 | } |
98 | 98 | |
99 | + /** |
|
100 | + * @param string $file |
|
101 | + */ |
|
99 | 102 | private function doXmlImport( $file, array $case ) { |
100 | 103 | |
101 | 104 | $this->xmlImportRunner->setFile( $file ); |
@@ -101,6 +101,9 @@ |
||
101 | 101 | ); |
102 | 102 | } |
103 | 103 | |
104 | + /** |
|
105 | + * @param Query $query |
|
106 | + */ |
|
104 | 107 | private function doQuery( array $case, $query ) { |
105 | 108 | |
106 | 109 | $this->benchmarker->clear(); |
@@ -8,8 +8,6 @@ |
||
8 | 8 | use SMWQuery as Query; |
9 | 9 | use SMW\Store; |
10 | 10 | use SMWQueryParser as QueryParser; |
11 | -use SMWQueryResult as QueryResult; |
|
12 | -use Title; |
|
13 | 11 | use RuntimeException; |
14 | 12 | |
15 | 13 | /** |
@@ -31,6 +31,9 @@ discard block |
||
31 | 31 | */ |
32 | 32 | private $testEnvironment; |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $file |
|
36 | + */ |
|
34 | 37 | public function __construct( $file = null ) { |
35 | 38 | $this->file = $file; |
36 | 39 | $this->testEnvironment = new TestEnvironment(); |
@@ -130,7 +133,7 @@ discard block |
||
130 | 133 | } |
131 | 134 | |
132 | 135 | /** |
133 | - * @return integer |
|
136 | + * @return double |
|
134 | 137 | */ |
135 | 138 | public function getElapsedImportTimeInSeconds() { |
136 | 139 | return round( $this->importTime, 7 ); |
@@ -145,6 +148,9 @@ discard block |
||
145 | 148 | return $this->requestContext; |
146 | 149 | } |
147 | 150 | |
151 | + /** |
|
152 | + * @param string $file |
|
153 | + */ |
|
148 | 154 | private function assertThatFileIsReadableOrThrowException( $file ) { |
149 | 155 | |
150 | 156 | $file = str_replace( array( '\\', '/' ), DIRECTORY_SEPARATOR, $file ); |
@@ -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; |
@@ -163,6 +163,10 @@ discard block |
||
163 | 163 | * Get the HTML for displaying subproperties of this property. This list |
164 | 164 | * is usually short and we implement no additional navigation. |
165 | 165 | * |
166 | + * @param DIProperty $property |
|
167 | + * @param RequestOptions $requestOptions |
|
168 | + * @param integer $listLimit |
|
169 | + * @param string $header |
|
166 | 170 | * @return string |
167 | 171 | */ |
168 | 172 | protected function getPropertyList( $property, $requestOptions, $listLimit, $header ) { |
@@ -374,6 +378,9 @@ discard block |
||
374 | 378 | return $this->store->getQueryResult( $query )->getResults(); |
375 | 379 | } |
376 | 380 | |
381 | + /** |
|
382 | + * @return null|SMW\SemanticData |
|
383 | + */ |
|
377 | 384 | private function getSemanticData() { |
378 | 385 | |
379 | 386 | $applicationFactory = ApplicationFactory::getInstance(); |
@@ -160,6 +160,11 @@ discard block |
||
160 | 160 | return $this->doFind( '_SUBC', $category->getDBKey(), $category, new RequestOptions() ); |
161 | 161 | } |
162 | 162 | |
163 | + /** |
|
164 | + * @param string $id |
|
165 | + * @param string $key |
|
166 | + * @param RequestOptions $requestOptions |
|
167 | + */ |
|
163 | 168 | private function doFind( $id, $key, DIWikiPage $subject, $requestOptions ) { |
164 | 169 | |
165 | 170 | $key = $id . '#' . $key . '#' . md5( $requestOptions->getHash() ); |
@@ -184,6 +189,9 @@ discard block |
||
184 | 189 | return $result; |
185 | 190 | } |
186 | 191 | |
192 | + /** |
|
193 | + * @param string $message |
|
194 | + */ |
|
187 | 195 | private function log( $message, $context = array() ) { |
188 | 196 | |
189 | 197 | if ( $this->logger === null ) { |
@@ -88,7 +88,7 @@ |
||
88 | 88 | * |
89 | 89 | * @since 1.0 |
90 | 90 | * |
91 | - * @return array |
|
91 | + * @return StringCondition[] |
|
92 | 92 | */ |
93 | 93 | public function getStringConditions() { |
94 | 94 | return $this->stringConditions; |
@@ -87,6 +87,9 @@ discard block |
||
87 | 87 | return true; |
88 | 88 | } |
89 | 89 | |
90 | + /** |
|
91 | + * @param string $action |
|
92 | + */ |
|
90 | 93 | private function checkMwNamespaceEditPermission( Title &$title, User $user, $action, &$errors ) { |
91 | 94 | |
92 | 95 | // @see https://www.semantic-mediawiki.org/wiki/Help:Special_property_Allows_pattern |
@@ -99,6 +102,9 @@ discard block |
||
99 | 102 | return false; |
100 | 103 | } |
101 | 104 | |
105 | + /** |
|
106 | + * @param string $action |
|
107 | + */ |
|
102 | 108 | private function checkPermissionOn( Title &$title, User $user, $action, &$errors ) { |
103 | 109 | |
104 | 110 | // @see https://www.semantic-mediawiki.org/wiki/Help:Special_property_Is_edit_protected |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\Tests\MediaWiki\Hooks; |
4 | 4 | |
5 | 5 | use SMW\MediaWiki\Hooks\EditPageForm; |
6 | -use SMW\MediaWiki\Renderer\HtmlFormRenderer; |
|
7 | 6 | use Title; |
8 | 7 | |
9 | 8 | /** |
@@ -182,7 +182,6 @@ discard block |
||
182 | 182 | /** |
183 | 183 | * @since 2.1 |
184 | 184 | * |
185 | - * @param string $description |
|
186 | 185 | * @param array $attributes |
187 | 186 | * |
188 | 187 | * @return HtmlFormRenderer |
@@ -217,8 +216,8 @@ discard block |
||
217 | 216 | /** |
218 | 217 | * @since 2.1 |
219 | 218 | * |
220 | - * @param $level |
|
221 | - * @param $text |
|
219 | + * @param string $level |
|
220 | + * @param string $text |
|
222 | 221 | * |
223 | 222 | * @return HtmlFormRenderer |
224 | 223 | */ |