Continued:
- 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>
This commit is contained in:
parent
bf0a07b7ae
commit
4c72cb3584
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ class ostatus {
|
||||||
|
|
||||||
$alternate = $xpath->query("atom:author/atom:link[@rel='alternate']", $context)->item(0)->attributes;
|
$alternate = $xpath->query("atom:author/atom:link[@rel='alternate']", $context)->item(0)->attributes;
|
||||||
if (is_object($alternate)) {
|
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) {
|
foreach ($alternate AS $attributes) {
|
||||||
if ($attributes->name == "href") {
|
if ($attributes->name == "href") {
|
||||||
$author["author-link"] = $attributes->textContent;
|
$author["author-link"] = $attributes->textContent;
|
||||||
|
@ -1138,7 +1138,7 @@ class ostatus {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @TODO One statment is okay (until if () )
|
/// @TODO One statment is okay (until if() )
|
||||||
$arr = array();
|
$arr = array();
|
||||||
$arr["network"] = $details["network"];
|
$arr["network"] = $details["network"];
|
||||||
$arr["uri"] = $single_conv->id;
|
$arr["uri"] = $single_conv->id;
|
||||||
|
|
Loading…
Reference in a new issue