]> git.mxchange.org Git - friendica.git/blobdiff - mod/smilies.php
The first queries are replaced with the new functions. More to come ...
[friendica.git] / mod / smilies.php
index 8e04d5d054497ef2b42cb3c742b52b9cdbaba82a..289ad887f96bf5e5bfa87e92cbfdf0ded9e86264 100644 (file)
@@ -3,19 +3,19 @@
 /**
  * @file mod/smilies.php
  */
+use Friendica\App;
 
 require_once("include/Smilies.php");
 
-function smilies_content(App &$a) {
-       if ($a->argv[1]==="json"){
+function smilies_content(App $a) {
+       if ($a->argv[1] === "json") {
                $tmp = Smilies::get_list();
                $results = array();
-               for($i = 0; $i < count($tmp['texts']); $i++) {
+               for ($i = 0; $i < count($tmp['texts']); $i++) {
                        $results[] = array('text' => $tmp['texts'][$i], 'icon' => $tmp['icons'][$i]);
                }
                json_return_and_die($results);
-       }
-       else {
-               return Smilies::replace('',true);
+       } else {
+               return Smilies::replace('', true);
        }
 }