X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FMigrate%2FExport.php;h=7dc6b17d7f67b6babea222205437a2a21f9414bb;hb=3e5a5b8db16f8b01eaf13fcab27582b09ce0958f;hp=73469e553f59210f9e6ea8ad390bc2a66f8b1860;hpb=3f13cb67cad4d22cc8153454d34dc10a88785672;p=civicrm-core.git diff --git a/CRM/Utils/Migrate/Export.php b/CRM/Utils/Migrate/Export.php index 73469e553f..7dc6b17d7f 100644 --- a/CRM/Utils/Migrate/Export.php +++ b/CRM/Utils/Migrate/Export.php @@ -22,7 +22,7 @@ class CRM_Utils_Migrate_Export { * @var array * Description of export field mapping * - * @code + * ``` * 'exampleEntityMappingName' => array( * 'data' => array(), // placeholder; this will get filled-in during execution * 'name' => 'CustomGroup', // per-item XML tag name @@ -31,7 +31,7 @@ class CRM_Utils_Migrate_Export { * 'idNameFields' => array('id', 'name'), // name of the (local/autogenerated) "id" and (portable) "name" columns * 'idNameMap' => array(), // placeholder; this will get filled-in during execution * ), - * @endcode + * ``` */ protected $_xml; @@ -386,8 +386,8 @@ class CRM_Utils_Migrate_Export { * @param null $sql */ public function fetch($groupName, $daoName, $sql = NULL) { - $idNameFields = isset($this->_xml[$groupName]['idNameFields']) ? $this->_xml[$groupName]['idNameFields'] : NULL; - $mappedFields = isset($this->_xml[$groupName]['mappedFields']) ? $this->_xml[$groupName]['mappedFields'] : NULL; + $idNameFields = $this->_xml[$groupName]['idNameFields'] ?? NULL; + $mappedFields = $this->_xml[$groupName]['mappedFields'] ?? NULL; $dao = new $daoName(); if ($sql) {