@@ -144,9 +144,7 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | if ( $c == '[' ) { |
| 146 | 146 | $uncompleted_square_brackets++; |
| 147 | - } |
|
| 148 | - |
|
| 149 | - elseif ( $c == ']' ) { |
|
| 147 | + } elseif ( $c == ']' ) { |
|
| 150 | 148 | $uncompleted_square_brackets--; |
| 151 | 149 | } |
| 152 | 150 | } |
@@ -240,8 +238,7 @@ discard block |
||
| 240 | 238 | foreach ( $params as $param ) { |
| 241 | 239 | $parameters[$param->getName()] = $param->getValue(); |
| 242 | 240 | } |
| 243 | - } |
|
| 244 | - else { |
|
| 241 | + } else { |
|
| 245 | 242 | $parameters = $params; |
| 246 | 243 | } |
| 247 | 244 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | * |
| 133 | 133 | * @param string $param |
| 134 | 134 | * |
| 135 | - * @return array |
|
| 135 | + * @return string[] |
|
| 136 | 136 | */ |
| 137 | 137 | protected static function getSubParams( $param ) { |
| 138 | 138 | $sub_params = []; |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | * |
| 263 | 263 | * @param CompoundQueryResult $res |
| 264 | 264 | * @param array $params These need to be the result of a list fed to getProcessedParams as of SMW 1.6.2 |
| 265 | - * @param $outputmode |
|
| 265 | + * @param integer $outputmode |
|
| 266 | 266 | * @param $context |
| 267 | 267 | * @param string $format |
| 268 | 268 | * |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | * @codeCoverageIgnore |
| 67 | 67 | * @see ApiBase::getDescription |
| 68 | 68 | * |
| 69 | - * @return array |
|
| 69 | + * @return string[] |
|
| 70 | 70 | */ |
| 71 | 71 | public function getDescription() { |
| 72 | 72 | return [ |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * @codeCoverageIgnore |
| 79 | 79 | * @see ApiBase::getExamples |
| 80 | 80 | * |
| 81 | - * @return array |
|
| 81 | + * @return string[] |
|
| 82 | 82 | */ |
| 83 | 83 | protected function getExamples() { |
| 84 | 84 | return [ |