Merge "Eliminate duplicate file"

This commit is contained in:
jenkins-bot 2023-07-18 09:17:03 +00:00 committed by Gerrit Code Review
commit f6832d0235
3 changed files with 9 additions and 2596 deletions

View file

@ -102,8 +102,15 @@ class TexUtil {
* @return array
*/
private function getJSON() {
$file = file_get_contents( __DIR__ . '/texutil.json' );
$file = self::getJsonFile();
$json = json_decode( $file, true );
return $json;
}
/**
* @return false|string
*/
public static function getJsonFile() {
return file_get_contents( __DIR__ . '/texutil.json' );
}
}

View file

@ -107,7 +107,7 @@ class TexUtilTest extends MediaWikiUnitTestCase {
}
// Loading local json file
$file = file_get_contents( __DIR__ . '/texutil.json' );
$file = TexUtil::getJsonFile();
$fileP = str_replace( [ "\n", "\t", " " ], "", $file );
$encP = json_encode( $out );

File diff suppressed because it is too large Load diff