]> git.mxchange.org Git - friendica-addons.git/blobdiff - ifttt/ifttt.php
Use short form array syntax everywhere
[friendica-addons.git] / ifttt / ifttt.php
index 199aace430630b53d3626d6fc0f0c556cc236cf1..8a457df37aad16708a3b2e1790a2aae1e4a198ee 100644 (file)
@@ -120,13 +120,13 @@ function ifttt_post(App $a)
                return;
        }
 
-       $item = array();
+       $item = [];
 
        if (isset($_REQUEST['type'])) {
                $item['type'] = $_REQUEST['type'];
        }
 
-       if (!in_array($item['type'], array('status', 'link', 'photo'))) {
+       if (!in_array($item['type'], ['status', 'link', 'photo'])) {
                logger('Unknown item type ' . $item['type'], LOGGER_DEBUG);
                return;
        }