mirror of
https://github.com/friendica/friendica
synced 2025-04-24 09:10:17 +00:00
PHPStan: Fix missing requires/namespaces
This commit is contained in:
parent
e40917b792
commit
10b72b0e9e
35 changed files with 89 additions and 37 deletions
|
@ -17,9 +17,10 @@ use Friendica\Model\Profile;
|
|||
use Friendica\Network\Probe;
|
||||
use dba;
|
||||
use DOMDocument;
|
||||
use DomXPath;
|
||||
use DOMXPath;
|
||||
use Exception;
|
||||
|
||||
require_once 'include/dba.php';
|
||||
require_once 'include/datetime.php';
|
||||
require_once 'include/network.php';
|
||||
require_once 'include/html2bbcode.php';
|
||||
|
@ -512,7 +513,7 @@ class PortableContact
|
|||
$doc = new DOMDocument();
|
||||
@$doc->loadXML($feedret["body"]);
|
||||
|
||||
$xpath = new DomXPath($doc);
|
||||
$xpath = new DOMXPath($doc);
|
||||
$xpath->registerNamespace('atom', "http://www.w3.org/2005/Atom");
|
||||
|
||||
$entries = $xpath->query('/atom:feed/atom:entry');
|
||||
|
@ -768,7 +769,7 @@ class PortableContact
|
|||
|
||||
$doc = new DOMDocument();
|
||||
@$doc->loadHTML($body);
|
||||
$xpath = new DomXPath($doc);
|
||||
$xpath = new DOMXPath($doc);
|
||||
|
||||
$list = $xpath->query("//meta[@name]");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue