summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/Translate/utils/Font.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/Translate/utils/Font.php')
-rw-r--r--www/wiki/extensions/Translate/utils/Font.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/www/wiki/extensions/Translate/utils/Font.php b/www/wiki/extensions/Translate/utils/Font.php
index 02925721..37fa4ac7 100644
--- a/www/wiki/extensions/Translate/utils/Font.php
+++ b/www/wiki/extensions/Translate/utils/Font.php
@@ -4,8 +4,7 @@
*
* @author Niklas Laxström
* @author Harry Burt
- * @copyright Copyright © 2008-2013, Niklas Laxström
- * @license Public Domain
+ * @license Unlicense
* @file
*/
@@ -19,7 +18,7 @@
class FCFontFinder {
/**
* Searches for suitable font in the system.
- * @param $code \string Language code.
+ * @param string $code Language code.
* @return bool|string Full path to the font file, false on failure
*/
public static function findFile( $code ) {
@@ -33,7 +32,7 @@ class FCFontFinder {
/**
* Searches for suitable font family in the system.
- * @param $code \string Language code.
+ * @param string $code Language code.
* @return bool|string Name of font family, false on failure
*/
public static function findFamily( $code ) {
@@ -79,7 +78,7 @@ class FCFontFinder {
}
$pattern = '/^(.*?): "(.*)" "(.*)"$/';
- $matches = array();
+ $matches = [];
if ( !preg_match( $pattern, $suggestion, $matches ) ) {
wfDebugLog( 'fcfont', "fc-match: return format not understood: $suggestion" );
@@ -119,11 +118,11 @@ class FCFontFinder {
wfDebugLog( 'fcfont', "fc-list got $count candidates; using $chosen" );
- $data = array(
+ $data = [
'family' => $family,
'type' => $type,
'file' => $chosen,
- );
+ ];
$cache->set( $cachekey, $data, $timeout );