改名
This commit is contained in:
@@ -90,7 +90,6 @@ class Shutdown extends Component
|
|||||||
/**
|
/**
|
||||||
* @param $content
|
* @param $content
|
||||||
* @return bool
|
* @return bool
|
||||||
* @throws ConfigException
|
|
||||||
*/
|
*/
|
||||||
public function pidIsExists($content): bool
|
public function pidIsExists($content): bool
|
||||||
{
|
{
|
||||||
@@ -101,10 +100,7 @@ class Shutdown extends Component
|
|||||||
$output = array_filter($output, function ($value) {
|
$output = array_filter($output, function ($value) {
|
||||||
return intval($value);
|
return intval($value);
|
||||||
});
|
});
|
||||||
if (in_array(intval($content), $output)) {
|
return in_array(intval($content), $output);
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user