]> git.mxchange.org Git - friendica.git/blobdiff - mod/tagrm.php
Merge remote-tracking branch 'upstream/develop' into 1701-performance
[friendica.git] / mod / tagrm.php
index 8379495a2dba75016f8acb9e7f34695d0df86837..2e7f8b97082436e8061998997f0150d666147fcb 100644 (file)
@@ -2,7 +2,7 @@
 
 require_once('include/bbcode.php');
 
-function tagrm_post(App &$a) {
+function tagrm_post(App $a) {
 
        if (! local_user()) {
                goaway(App::get_baseurl() . '/' . $_SESSION['photo_return']);
@@ -42,14 +42,14 @@ function tagrm_post(App &$a) {
 
        info( t('Tag removed') . EOL );
        goaway(App::get_baseurl() . '/' . $_SESSION['photo_return']);
-       
+
        // NOTREACHED
 
 }
 
 
 
-function tagrm_content(App &$a) {
+function tagrm_content(App $a) {
 
        $o = '';
 
@@ -59,7 +59,7 @@ function tagrm_content(App &$a) {
        }
 
        $item = (($a->argc > 1) ? intval($a->argv[1]) : 0);
-       if(! $item) {
+       if (! $item) {
                goaway(App::get_baseurl() . '/' . $_SESSION['photo_return']);
                // NOTREACHED
        }
@@ -87,8 +87,7 @@ function tagrm_content(App &$a) {
        $o .= '<input type="hidden" name="item" value="' . $item . '" />';
        $o .= '<ul>';
 
-
-       foreach($arr as $x) {
+       foreach ($arr as $x) {
                $o .= '<li><input type="checkbox" name="tag" value="' . bin2hex($x) . '" >' . bbcode($x) . '</input></li>';
        }
 
@@ -98,5 +97,5 @@ function tagrm_content(App &$a) {
        $o .= '</form>';
 
        return $o;
-       
+
 }