Merge pull request #14485 from seamuslee001/domain_uniqueness_cache_key
[civicrm-core.git] / CRM / Mailing / Info.php
index 7ed725507dda2fc6dda5b8bfce0eed8d4ba81960..a674129e54aad866526608d69cb02ebf9afccf6c 100644 (file)
 class CRM_Mailing_Info extends CRM_Core_Component_Info {
 
   /**
+   * @var string
    * @inheritDoc
    */
   protected $keyword = 'mailing';
 
-
   /**
    * @inheritDoc
    * @return array
@@ -78,7 +78,8 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info {
     foreach ($reportTypes as $report) {
       $result = civicrm_api3('ReportInstance', 'get', [
         'sequential' => 1,
-        'report_id' => 'mailing/' . $report]);
+        'report_id' => 'mailing/' . $report,
+      ]);
       if (!empty($result['values'])) {
         $reportIds[$report] = $result['values'][0]['id'];
       }
@@ -150,9 +151,9 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info {
           'disableMandatoryTokensCheck' => (int) Civi::settings()->get('disable_mandatory_tokens_check'),
           'fromAddress' => $fromAddress['values'],
           'defaultTestEmail' => civicrm_api3('Contact', 'getvalue', [
-              'id' => 'user_contact_id',
-              'return' => 'email',
-            ]),
+            'id' => 'user_contact_id',
+            'return' => 'email',
+          ]),
           'visibility' => CRM_Utils_Array::makeNonAssociative(CRM_Core_SelectValues::groupVisibility()),
           'workflowEnabled' => CRM_Mailing_Info::workflowEnabled(),
           'reportIds' => $reportIds,
@@ -245,7 +246,6 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info {
     return $permissions;
   }
 
-
   /**
    * @inheritDoc
    * @return null