@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | public function provideData() { |
96 | 96 | |
97 | - $data = []; |
|
97 | + $data = [ ]; |
|
98 | 98 | |
99 | 99 | $xmlFileProvider = new XmlFileProvider( __DIR__ . '/../Fixture/articleAnnotation' ); |
100 | 100 | $files = $xmlFileProvider->getFiles(); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | $testCase = [ |
112 | 112 | 0 => substr( $file, strlen( __DIR__ . '/../Fixture/articleAnnotation' ) ), |
113 | 113 | 1 => trim( $decoded[ 'text' ] ), |
114 | - 2 => [], |
|
114 | + 2 => [ ], |
|
115 | 115 | 3 => trim( $decoded[ 'expected' ] ) . "\n", |
116 | 116 | ]; |
117 | 117 | |
@@ -120,12 +120,12 @@ discard block |
||
120 | 120 | } |
121 | 121 | |
122 | 122 | foreach ( $decoded[ 'glossary-entry' ] as $entry ) { |
123 | - $testCase[ 2 ][] = [ $entry[ 'term' ], $entry[ 'definition' ], $entry[ 'link' ], $entry[ 'style' ] ]; |
|
123 | + $testCase[ 2 ][ ] = [ $entry[ 'term' ], $entry[ 'definition' ], $entry[ 'link' ], $entry[ 'style' ] ]; |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | \MediaWiki\restoreWarnings(); |
127 | 127 | |
128 | - $data[] = $testCase; |
|
128 | + $data[ ] = $testCase; |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | return $data; |
@@ -103,7 +103,7 @@ |
||
103 | 103 | |
104 | 104 | $xml = simplexml_load_file( $file, "SimpleXMLElement", LIBXML_NOCDATA ); |
105 | 105 | $json = json_encode( $xml ); |
106 | - $decoded = json_decode( $json, TRUE ); |
|
106 | + $decoded = json_decode( $json, true ); |
|
107 | 107 | |
108 | 108 | // suppress warnings for non-existant array keys |
109 | 109 | \MediaWiki\suppressWarnings(); |