]> git.mxchange.org Git - friendica.git/blobdiff - mod/tagger.php
Use short form array syntax everywhere
[friendica.git] / mod / tagger.php
index c7e8a9469aed35207dfc48a6ca269514cd968c96..90fd2414b8af9bbd5a951f4a4a38bb0db2b3a062 100644 (file)
@@ -17,7 +17,7 @@ function tagger_content(App $a) {
 
        $term = notags(trim($_GET['term']));
        // no commas allowed
-       $term = str_replace(array(',',' '),array('','_'),$term);
+       $term = str_replace([',',' '],['','_'],$term);
 
        if(! $term)
                return;
@@ -104,7 +104,7 @@ EOT;
 
        $termlink = html_entity_decode('⌗') . '[url=' . System::baseUrl() . '/search?tag=' . urlencode($term) . ']'. $term . '[/url]';
 
-       $arr = array();
+       $arr = [];
 
        $arr['guid'] = get_guid(32);
        $arr['uri'] = $uri;