Address PHPStan warnings in 'classes/pluginhost.php'.
------ -------------------------------------------------------------------- Line classes/pluginhost.php ------ -------------------------------------------------------------------- 16 Property PluginHost::$last_registered is never read, only written. 386 If condition is always true. ------ --------------------------------------------------------------------
This commit is contained in:
parent
a7a59fe0e2
commit
8a920a16e7
|
@ -13,7 +13,6 @@ class PluginHost {
|
||||||
private $api_methods = array();
|
private $api_methods = array();
|
||||||
private $plugin_actions = array();
|
private $plugin_actions = array();
|
||||||
private $owner_uid;
|
private $owner_uid;
|
||||||
private $last_registered;
|
|
||||||
private $data_loaded;
|
private $data_loaded;
|
||||||
private static $instance;
|
private static $instance;
|
||||||
|
|
||||||
|
@ -383,7 +382,7 @@ class PluginHost {
|
||||||
|
|
||||||
if (!isset($this->plugins[$class])) {
|
if (!isset($this->plugins[$class])) {
|
||||||
try {
|
try {
|
||||||
if (file_exists($file)) require_once $file;
|
require_once $file;
|
||||||
} catch (Error $err) {
|
} catch (Error $err) {
|
||||||
user_error($err, E_USER_WARNING);
|
user_error($err, E_USER_WARNING);
|
||||||
continue;
|
continue;
|
||||||
|
@ -404,8 +403,6 @@ class PluginHost {
|
||||||
_bind_textdomain_codeset($class, "UTF-8");
|
_bind_textdomain_codeset($class, "UTF-8");
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->last_registered = $class;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
switch ($kind) {
|
switch ($kind) {
|
||||||
case $this::KIND_SYSTEM:
|
case $this::KIND_SYSTEM:
|
||||||
|
|
Loading…
Reference in New Issue