改名
This commit is contained in:
@@ -99,15 +99,9 @@ trait Action
|
|||||||
/**
|
/**
|
||||||
* @param $port
|
* @param $port
|
||||||
* @return bool|array
|
* @return bool|array
|
||||||
* @throws ComponentException
|
|
||||||
*/
|
*/
|
||||||
private function isUse($port)
|
private function isUse($port)
|
||||||
{
|
{
|
||||||
/** @var Input $input */
|
|
||||||
$input = Snowflake::app()->get('input');
|
|
||||||
if (in_array($input->get('action'), ['start', 'restart'])) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (empty($port)) {
|
if (empty($port)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user