Replace coalesce pattern with coalesce operator
[civicrm-core.git] / CRM / Core / Config / MagicMerge.php
index 84f27ed990f471fd1847a6b98e8b2ec9d35e41ca..88110b643209d61da95f64316165909ba28c7c92 100644 (file)
@@ -224,7 +224,7 @@ class CRM_Core_Config_MagicMerge {
     }
 
     $type = $this->map[$k][0];
-    $name = isset($this->map[$k][1]) ? $this->map[$k][1] : $k;
+    $name = $this->map[$k][1] ?? $k;
 
     switch ($type) {
       case 'setting':
@@ -358,7 +358,7 @@ class CRM_Core_Config_MagicMerge {
     }
     unset($this->cache[$k]);
     $type = $this->map[$k][0];
-    $name = isset($this->map[$k][1]) ? $this->map[$k][1] : $k;
+    $name = $this->map[$k][1] ?? $k;
 
     switch ($type) {
       case 'setting':