@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | public function provideData() { |
| 93 | - $data = []; |
|
| 93 | + $data = [ ]; |
|
| 94 | 94 | |
| 95 | 95 | $xmlFileProvider = new XmlFileProvider( __DIR__ . '/../Fixture/articleAnnotation' ); |
| 96 | 96 | $files = $xmlFileProvider->getFiles(); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $testCase = [ |
| 108 | 108 | 0 => substr( $file, strlen( __DIR__ . '/../Fixture/articleAnnotation' ) ), |
| 109 | 109 | 1 => trim( $decoded[ 'text' ] ), |
| 110 | - 2 => [], |
|
| 110 | + 2 => [ ], |
|
| 111 | 111 | 3 => trim( $decoded[ 'expected' ] ) . "\n", |
| 112 | 112 | ]; |
| 113 | 113 | |
@@ -116,12 +116,12 @@ discard block |
||
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | foreach ( $decoded[ 'glossary-entry' ] as $entry ) { |
| 119 | - $testCase[ 2 ][] = [ $entry[ 'term' ], $entry[ 'definition' ], $entry[ 'link' ], $entry[ 'style' ] ]; |
|
| 119 | + $testCase[ 2 ][ ] = [ $entry[ 'term' ], $entry[ 'definition' ], $entry[ 'link' ], $entry[ 'style' ] ]; |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | \Wikimedia\restoreWarnings(); |
| 123 | 123 | |
| 124 | - $data[] = $testCase; |
|
| 124 | + $data[ ] = $testCase; |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | return $data; |