@@ -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 | |
@@ -15,7 +15,9 @@ |
||
| 15 | 15 | * @defgroup SemanticCompoundQueries SemanticCompoundQueries |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
|
| 18 | +if ( !defined( 'MEDIAWIKI' ) ) { |
|
| 19 | + die(); |
|
| 20 | +} |
|
| 19 | 21 | |
| 20 | 22 | define( 'SCQ_VERSION', '0.4.1' ); |
| 21 | 23 | |