+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2019 |
+ | Copyright CiviCRM LLC (c) 2004-2020 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2019
+ * @copyright CiviCRM LLC https://civicrm.org/licensing
* $Id$
*
*/
public static function &longForShortMapping() {
static $longForShortMapping = NULL;
if ($longForShortMapping === NULL) {
- $rows = array();
- CRM_Core_OptionValue::getValues(array('name' => 'languages'), $rows);
+ $rows = [];
+ CRM_Core_OptionValue::getValues(['name' => 'languages'], $rows);
- $longForShortMapping = array();
+ $longForShortMapping = [];
foreach ($rows as $row) {
$longForShortMapping[$row['value']] = $row['name'];
}
* @return array
*/
public static function getRTLlanguages() {
- $rtl = array(
+ $rtl = [
'ar',
'fa',
'he',
'ur',
- );
+ ];
return $rtl;
}