X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FMailing%2FMailStore.php;h=bb94c529a161ee4e3e79a2a4bbe12778e1c279cb;hb=4e556b169cf3db5efa329b4b4bde515d60ddc914;hp=c2745c63bea00ce89ef60e4274747a947f5f2444;hpb=d9e8af2b9acdd8b6b72290a137bd95a8d3b06e73;p=civicrm-core.git diff --git a/CRM/Mailing/MailStore.php b/CRM/Mailing/MailStore.php index c2745c63be..bb94c529a1 100644 --- a/CRM/Mailing/MailStore.php +++ b/CRM/Mailing/MailStore.php @@ -122,9 +122,9 @@ class CRM_Mailing_MailStore { if ($this->_debug) { print "got to the end of the mailbox\n"; } - return array(); + return []; } - $mails = array(); + $mails = []; $parser = new ezcMailParser(); //set property text attachment as file CRM-5408 $parser->options->parseTextAttachmentsAsFiles = TRUE; @@ -152,11 +152,11 @@ class CRM_Mailing_MailStore { public function maildir($name) { $config = CRM_Core_Config::singleton(); $dir = $config->customFileUploadDir . DIRECTORY_SEPARATOR . $name; - foreach (array( + foreach ([ 'cur', 'new', 'tmp', - ) as $sub) { + ] as $sub) { if (!file_exists($dir . DIRECTORY_SEPARATOR . $sub)) { if ($this->_debug) { print "creating $dir/$sub\n";