Skip to content

Commit 62499b5

Browse files
committed
phpcs fixes
Signed-off-by: sergiu <sergiubota@rospace.com>
1 parent 41cb57e commit 62499b5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Swoole/Command/IsRunningTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public function isRunning(): bool
2121

2222
[$masterPid, $managerPid] = $pids;
2323

24-
if ($managerPid !== '') {
24+
if ($managerPid) {
2525
// Swoole process mode
26-
return $masterPid && $managerPid && SwooleProcess::kill((int) $managerPid, 0);
26+
return $masterPid && SwooleProcess::kill((int) $managerPid, 0);
2727
}
2828

2929
// Swoole base mode, no manager process

src/Swoole/ServerFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use function defined;
1616
use function in_array;
1717
use function is_array;
18-
use function method_exists;
1918

2019
use const SWOOLE_BASE;
2120
use const SWOOLE_PROCESS;

0 commit comments

Comments
 (0)