mirror of
https://github.com/friendica/friendica
synced 2025-05-02 12:24:24 +02:00
PHPStan: Fix missing requires/namespaces
This commit is contained in:
parent
e40917b792
commit
10b72b0e9e
35 changed files with 89 additions and 37 deletions
|
@ -40,6 +40,7 @@ use Friendica\Database\DBM;
|
|||
use Friendica\Model\User;
|
||||
use dba;
|
||||
|
||||
require_once 'include/dba.php';
|
||||
require_once 'include/dba.php';
|
||||
|
||||
class ExAuth
|
||||
|
@ -313,7 +314,7 @@ class ExAuth
|
|||
}
|
||||
|
||||
$file = $lockpath . DIRECTORY_SEPARATOR . $host;
|
||||
if (Pidfile::isRunningProcess($file)) {
|
||||
if (PidFile::isRunningProcess($file)) {
|
||||
if (PidFile::killProcess($file)) {
|
||||
$this->writeLog(LOG_INFO, 'Old process was successfully killed');
|
||||
} else {
|
||||
|
@ -323,7 +324,7 @@ class ExAuth
|
|||
}
|
||||
|
||||
// Now it is safe to create the pid file
|
||||
Pidfile::create($file);
|
||||
PidFile::create($file);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -14,6 +14,8 @@ use Friendica\Database\DBM;
|
|||
use Memcache;
|
||||
use dba;
|
||||
|
||||
require_once 'include/dba.php';
|
||||
|
||||
/**
|
||||
* @brief This class contain Functions for preventing parallel execution of functions
|
||||
*/
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace Friendica\Util;
|
|||
/**
|
||||
* @brief Pidfile class
|
||||
*/
|
||||
class Pidfile
|
||||
class PidFile
|
||||
{
|
||||
/**
|
||||
* @brief Read the pid from a given pid file
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
namespace Friendica\Util;
|
||||
|
||||
use DomXPath;
|
||||
use DOMXPath;
|
||||
use SimpleXMLElement;
|
||||
|
||||
/**
|
||||
|
@ -407,7 +407,7 @@ class XML
|
|||
*/
|
||||
public static function deleteNode(&$doc, $node)
|
||||
{
|
||||
$xpath = new DomXPath($doc);
|
||||
$xpath = new DOMXPath($doc);
|
||||
$list = $xpath->query("//".$node);
|
||||
foreach ($list as $child) {
|
||||
$child->parentNode->removeChild($child);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue