]> git.mxchange.org Git - friendica.git/blobdiff - mod/suggest.php
merged 2 if() into one as requested by CR
[friendica.git] / mod / suggest.php
index 4c08db8b6cf9f6012f5293dc5a635bb8b199ce3c..dd24fc0a2a3a01a120557f7bf659d638c30440cf 100644 (file)
@@ -3,8 +3,7 @@
 require_once('include/socgraph.php');
 require_once('include/contact_widgets.php');
 
-
-function suggest_init(App &$a) {
+function suggest_init(App $a) {
        if (! local_user()) {
                return;
        }
@@ -16,8 +15,8 @@ function suggest_init(App &$a) {
                        // so add any arguments as hidden inputs
                        $query = explode_querystring($a->query_string);
                        $inputs = array();
-                       foreach($query['args'] as $arg) {
-                               if(strpos($arg, 'confirm=') === false) {
+                       foreach ($query['args'] as $arg) {
+                               if (strpos($arg, 'confirm=') === false) {
                                        $arg_parts = explode('=', $arg);
                                        $inputs[] = array('name' => $arg_parts[0], 'value' => $arg_parts[1]);
                                }
@@ -50,7 +49,7 @@ function suggest_init(App &$a) {
 
 
 
-function suggest_content(App &$a) {
+function suggest_content(App $a) {
 
        require_once("mod/proxy.php");