Skip to content

Commit ba771cf

Browse files
committed
#22610 static-test-fix
1 parent db729ab commit ba771cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/code/Magento/Deploy/Process/Queue.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ private function isCanBeParalleled()
274274
*
275275
* @param Package $package
276276
* @return bool true on success for main process and exit for child process
277+
* @SuppressWarnings(PHPMD.ExitExpression)
277278
* @throws \RuntimeException
278279
*/
279280
private function execute(Package $package)
@@ -347,6 +348,7 @@ private function isDeployed(Package $package)
347348
$result = pcntl_waitpid($pid, $status, WNOHANG);
348349
if ($result === $pid) {
349350
$package->setState(Package::STATE_COMPLETED);
351+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
350352
$exitStatus = pcntl_wexitstatus($status);
351353

352354
$this->logger->info(
@@ -361,7 +363,9 @@ private function isDeployed(Package $package)
361363
// phpcs:ignore Magento2.Functions.DiscouragedFunction
362364
return pcntl_wexitstatus($status) === 0;
363365
} elseif ($result === -1) {
366+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
364367
$errno = pcntl_errno();
368+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
365369
$strerror = pcntl_strerror($errno);
366370

367371
throw new \RuntimeException(
@@ -401,6 +405,7 @@ private function checkTimeout()
401405
* Protect against zombie process
402406
*
403407
* @throws \RuntimeException
408+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
404409
* @return void
405410
*/
406411
public function __destruct()
@@ -417,7 +422,9 @@ public function __destruct()
417422

418423
// phpcs:ignore Magento2.Functions.DiscouragedFunction
419424
if (pcntl_waitpid($pid, $status) === -1) {
425+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
420426
$errno = pcntl_errno();
427+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
421428
$strerror = pcntl_strerror($errno);
422429

423430
throw new \RuntimeException(

0 commit comments

Comments
 (0)