Use expected return variable type in Network\Probe::detect
This commit is contained in:
parent
07aee06a02
commit
a2de7d25ec
|
@ -674,7 +674,7 @@ class Probe
|
||||||
$addr = $uri;
|
$addr = $uri;
|
||||||
} else {
|
} else {
|
||||||
Logger::log("Uri ".$uri." was not detectable", Logger::DEBUG);
|
Logger::log("Uri ".$uri." was not detectable", Logger::DEBUG);
|
||||||
return false;
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$webfinger = false;
|
$webfinger = false;
|
||||||
|
@ -716,7 +716,7 @@ class Probe
|
||||||
return self::feed($uri);
|
return self::feed($uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = false;
|
$result = [];
|
||||||
|
|
||||||
Logger::info("Probing", ['uri' => $uri]);
|
Logger::info("Probing", ['uri' => $uri]);
|
||||||
|
|
||||||
|
@ -767,6 +767,7 @@ class Probe
|
||||||
$result["baseurl"] = substr($result["url"], 0, $pos).$host;
|
$result["baseurl"] = substr($result["url"], 0, $pos).$host;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user