@@ -60,15 +60,15 @@ public function run()
6060
6161 // count total number of recipients
6262 $ rcptCount = 0 ;
63- $ rcptHeaders = array ( 'to ' , 'cc ' , 'bcc ' ) ;
63+ $ rcptHeaders = [ 'to ' , 'cc ' , 'bcc ' ] ;
6464 foreach ($ rcptHeaders as $ rcptHeader ) {
6565 if (isset ($ headerArr [$ rcptHeader ])) {
6666 // parse recipient headers according to RFC2822 (http://www.faqs.org/rfcs/rfc2822.html)
6767 $ rcptCount += count (imap_rfc822_parse_adrlist ($ headerArr [$ rcptHeader ], $ defaultHost ));
6868 }
6969 }
7070
71- $ messageInfo = array (
71+ $ messageInfo = [
7272 'uid ' => `whoami `,
7373 'msgid ' => $ msgId ,
7474 'from ' => @$ headerArr ['from ' ],
@@ -79,7 +79,7 @@ public function run()
7979 'site ' => @$ _SERVER ["HTTP_HOST " ],
8080 'client ' => @$ _SERVER ["REMOTE_ADDR " ],
8181 'script ' => getenv ('SCRIPT_FILENAME ' )
82- ) ;
82+ ] ;
8383
8484 // throttling
8585 if ($ throttleOn ) {
@@ -92,15 +92,15 @@ public function run()
9292 // redirect STDIN data to throttle command
9393 // We're going to use the whole email message including some
9494 // extra headers.
95- $ throttleMsg = $ this ->buildMessage (array (
95+ $ throttleMsg = $ this ->buildMessage ([
9696 'X-Meta-MsgID ' => $ messageInfo ['msgid ' ],
9797 'X-Meta-Site ' => $ messageInfo ['site ' ],
9898 'X-Meta-Client ' => $ messageInfo ['client ' ],
9999 'X-Meta-Script ' => $ messageInfo ['script ' ],
100- ) );
101- $ descriptorSpec = array (
102- 0 => array ( 'pipe ' , 'r ' )
103- ) ;
100+ ] );
101+ $ descriptorSpec = [
102+ 0 => [ 'pipe ' , 'r ' ]
103+ ] ;
104104 $ proc = proc_open ($ throttleCmd , $ descriptorSpec , $ pipes );
105105 if (is_resource ($ proc )) {
106106 fwrite ($ pipes [0 ], $ throttleMsg );
0 commit comments