Continued:
- added missing space/curly braces - added TODOs for later adding a lot type-hints, without these (and they are long time around in PHP) anything can be handled over to the method/function. Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
015561fec6
commit
bf0a07b7ae
|
@ -1277,7 +1277,7 @@ class dfrn {
|
||||||
$href = "";
|
$href = "";
|
||||||
$width = 0;
|
$width = 0;
|
||||||
foreach ($avatar->attributes AS $attributes) {
|
foreach ($avatar->attributes AS $attributes) {
|
||||||
/// @TODO Rewrite these similar if () to one switch
|
/// @TODO Rewrite these similar if() to one switch
|
||||||
if ($attributes->name == "href") {
|
if ($attributes->name == "href") {
|
||||||
$href = $attributes->textContent;
|
$href = $attributes->textContent;
|
||||||
}
|
}
|
||||||
|
@ -2122,7 +2122,7 @@ class dfrn {
|
||||||
$title = "";
|
$title = "";
|
||||||
foreach ($links AS $link) {
|
foreach ($links AS $link) {
|
||||||
foreach ($link->attributes AS $attributes) {
|
foreach ($link->attributes AS $attributes) {
|
||||||
/// @TODO Rewrite these repeated (same) if () statements to a switch()
|
/// @TODO Rewrite these repeated (same) if() statements to a switch()
|
||||||
if ($attributes->name == "href") {
|
if ($attributes->name == "href") {
|
||||||
$href = $attributes->textContent;
|
$href = $attributes->textContent;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue