]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/PubSubPublish.php
Use short form array syntax everywhere
[friendica.git] / src / Worker / PubSubPublish.php
index 3af206e80d86ae2335013759d85a740877cccc22..2656cef24b7af5b07adfcd97a5873537b445e6c5 100644 (file)
@@ -26,7 +26,7 @@ class PubSubPublish {
 
                        foreach ($r as $rr) {
                                logger("Publish feed to ".$rr["callback_url"], LOGGER_DEBUG);
-                               Worker::add(array('priority' => PRIORITY_HIGH, 'created' => $a->queue['created'], 'dont_fork' => true),
+                               Worker::add(['priority' => PRIORITY_HIGH, 'created' => $a->queue['created'], 'dont_fork' => true],
                                                'PubSubPublish', (int)$rr["id"]);
                        }
                }
@@ -60,11 +60,11 @@ class PubSubPublish {
 
                $hmac_sig = hash_hmac("sha1", $params, $rr['secret']);
 
-               $headers = array("Content-type: application/atom+xml",
+               $headers = ["Content-type: application/atom+xml",
                                sprintf("Link: <%s>;rel=hub,<%s>;rel=self",
                                        System::baseUrl().'/pubsubhubbub/'.$rr['nickname'],
                                        $rr['topic']),
-                               "X-Hub-Signature: sha1=".$hmac_sig);
+                               "X-Hub-Signature: sha1=".$hmac_sig];
 
                logger('POST '.print_r($headers, true)."\n".$params, LOGGER_DEBUG);