]> git.mxchange.org Git - friendica.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 26 Jan 2017 09:01:15 +0000 (10:01 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 18 Mar 2017 23:52:02 +0000 (00:52 +0100)
- added missing spaces/curly braces
- some more usage of dbm::is_result()
- 2 oppsite if() statements can be mored to else
- added more TODOs for type-hinting

Signed-off-by: Roland Häder <roland@mxchange.org>
include/ostatus.php

index 37f79cb5cc1224c84a4dfc8cc27e6296ff928997..996fdbfd75488cce6e3dfc8dc894b72998bd836c 100644 (file)
@@ -50,7 +50,7 @@ class ostatus {
 
                $alternate = $xpath->query("atom:author/atom:link[@rel='alternate']", $context)->item(0)->attributes;
                if (is_object($alternate)) {
-                       /// @TODO foreach () may only later work on objects that have iterator interface implemented, please check this
+                       /// @TODO foreach() may only later work on objects that have iterator interface implemented, please check this
                        foreach ($alternate AS $attributes) {
                                if ($attributes->name == "href") {
                                        $author["author-link"] = $attributes->textContent;
@@ -1138,7 +1138,7 @@ class ostatus {
                                continue;
                        }
 
-                       /// @TODO One statment is okay (until if () )
+                       /// @TODO One statment is okay (until if() )
                        $arr = array();
                        $arr["network"] = $details["network"];
                        $arr["uri"] = $single_conv->id;