]> git.mxchange.org Git - friendica.git/blobdiff - mod/poco.php
some code cleanup
[friendica.git] / mod / poco.php
index 11f984757a925e2d157f77cbfba8831143790a11..4ce075301cb9b1ed5ad27496fb3025bddf5ad06d 100644 (file)
@@ -2,7 +2,7 @@
 // See here for a documentation for portable contacts:
 // https://web.archive.org/web/20160405005550/http://portablecontacts.net/draft-spec.html
 
-function poco_init(App &$a) {
+function poco_init(App $a) {
        require_once("include/bbcode.php");
 
        $system_mode = false;
@@ -175,7 +175,7 @@ function poco_init(App &$a) {
 
        if(is_array($r)) {
                if (dbm::is_result($r)) {
-                       foreach($r as $rr) {
+                       foreach ($r as $rr) {
                                if (!isset($rr['generation'])) {
                                        if ($global)
                                                $rr['generation'] = 3;