@@ -72,8 +72,8 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | public function next() { |
| 74 | 74 | static $term = null; |
| 75 | - static $definitions = []; |
|
| 76 | - static $ret = []; |
|
| 75 | + static $definitions = [ ]; |
|
| 76 | + static $ret = [ ]; |
|
| 77 | 77 | |
| 78 | 78 | $this->collectDictionaryLines(); |
| 79 | 79 | |
@@ -109,11 +109,11 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | // wipe the data if it's a totally new term definition |
| 111 | 111 | if ( !empty( $term ) && count( $definitions ) > 0 ) { |
| 112 | - $definitions = []; |
|
| 112 | + $definitions = [ ]; |
|
| 113 | 113 | $term = null; |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | - $definitions[] = trim( $chunks[ 1 ] ); |
|
| 116 | + $definitions[ ] = trim( $chunks[ 1 ] ); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | // found a new term? |
@@ -130,10 +130,10 @@ discard block |
||
| 130 | 130 | * @return array |
| 131 | 131 | */ |
| 132 | 132 | protected function queueDefinitions( $definitions, $term ) { |
| 133 | - $ret = []; |
|
| 133 | + $ret = [ ]; |
|
| 134 | 134 | |
| 135 | 135 | foreach ( $definitions as $definition ) { |
| 136 | - $ret[] = [ |
|
| 136 | + $ret[ ] = [ |
|
| 137 | 137 | Element::ELEMENT_TERM => $term, |
| 138 | 138 | Element::ELEMENT_DEFINITION => $definition, |
| 139 | 139 | Element::ELEMENT_LINK => null, |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | if ( $content instanceof TextContent ) { |
| 213 | 213 | |
| 214 | 214 | // FIXME: getNativeData() is deprecated for MW 1.33+. Use getText(). |
| 215 | - if ( ! method_exists( $content, 'getText')) { |
|
| 215 | + if ( !method_exists( $content, 'getText' ) ) { |
|
| 216 | 216 | return $content->getNativeData(); |
| 217 | 217 | } |
| 218 | 218 | |