@@ -38,7 +38,7 @@ |
||
38 | 38 | /** |
39 | 39 | * @since 2.1 |
40 | 40 | * |
41 | - * @param Title $title |
|
41 | + * @param Title|null $title |
|
42 | 42 | * |
43 | 43 | * @return PageEditor |
44 | 44 | */ |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * |
41 | 41 | * @param Title $title |
42 | 42 | * |
43 | - * @return text |
|
43 | + * @return string |
|
44 | 44 | */ |
45 | 45 | public function getContentAsText( Title $title ) { |
46 | 46 |
@@ -26,6 +26,9 @@ discard block |
||
26 | 26 | protected $result = null; |
27 | 27 | protected $verbose = false; |
28 | 28 | |
29 | + /** |
|
30 | + * @param string $file |
|
31 | + */ |
|
29 | 32 | public function __construct( $file = null ) { |
30 | 33 | $this->file = $file; |
31 | 34 | } |
@@ -115,7 +118,7 @@ discard block |
||
115 | 118 | } |
116 | 119 | |
117 | 120 | /** |
118 | - * @return integer |
|
121 | + * @return double |
|
119 | 122 | */ |
120 | 123 | public function getElapsedImportTimeInSeconds() { |
121 | 124 | return round( $this->importTime, 7 ); |
@@ -156,7 +156,6 @@ |
||
156 | 156 | /** |
157 | 157 | * @since 2.1 |
158 | 158 | * |
159 | - * @param string $file|null |
|
160 | 159 | * |
161 | 160 | * @return JsonFileReader |
162 | 161 | */ |
@@ -22,7 +22,6 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * @since 2.0 |
24 | 24 | * |
25 | - * @param mixed $expected |
|
26 | 25 | * @param ExpData $exportData |
27 | 26 | */ |
28 | 27 | public function assertThatExportDataContainsProperty( $expectedProperties, ExpData $exportData ) { |
@@ -57,7 +56,6 @@ discard block |
||
57 | 56 | /** |
58 | 57 | * @since 2.0 |
59 | 58 | * |
60 | - * @param mixed $expected |
|
61 | 59 | * @param ExpResource $selectedElement |
62 | 60 | * @param ExpData $exportData |
63 | 61 | */ |
@@ -21,11 +21,15 @@ |
||
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @since 2.1 |
24 | + * @param string[] $titles |
|
24 | 25 | */ |
25 | 26 | public function assertThatTitleIsKnown( $titles ) { |
26 | 27 | $this->assertTitleExists( true, $titles ); |
27 | 28 | } |
28 | 29 | |
30 | + /** |
|
31 | + * @param boolean $isExpected |
|
32 | + */ |
|
29 | 33 | private function assertTitleExists( $isExpected, $titles ) { |
30 | 34 | |
31 | 35 | if ( !is_array( $titles ) ) { |
@@ -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(); |
@@ -144,7 +144,6 @@ |
||
144 | 144 | /** |
145 | 145 | * Returns RequestContext object |
146 | 146 | * |
147 | - * @param array $params |
|
148 | 147 | * |
149 | 148 | * @return RequestContext |
150 | 149 | */ |
@@ -58,7 +58,7 @@ |
||
58 | 58 | * |
59 | 59 | * @param SMWQueryResult $queryResult |
60 | 60 | * |
61 | - * @return string|boolean |
|
61 | + * @return string |
|
62 | 62 | */ |
63 | 63 | public function getFileName( SMWQueryResult $queryResult ) { |
64 | 64 | return $this->syntax == 'turtle' ? 'result.ttl' : 'result.rdf'; |