(NFC) (dev/core#878) Simplify '@copyright' annotation
[civicrm-core.git] / CRM / Core / I18n / PseudoConstant.php
index 8d703ebf6b0885e60c05fb69f7193ba127662586..2e7b731c338a90f238f2f0fc5f6170b3da80b8d7 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2019                                |
+ | Copyright CiviCRM LLC (c) 2004-2020                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2019
+ * @copyright CiviCRM LLC https://civicrm.org/licensing
  * $Id$
  *
  */
@@ -50,10 +50,10 @@ class CRM_Core_I18n_PseudoConstant {
   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'];
       }
@@ -84,12 +84,12 @@ class CRM_Core_I18n_PseudoConstant {
    * @return array
    */
   public static function getRTLlanguages() {
-    $rtl = array(
+    $rtl = [
       'ar',
       'fa',
       'he',
       'ur',
-    );
+    ];
 
     return $rtl;
   }