Skip to content

Commit 485869e

Browse files
committed
Adhere to coding standard
1 parent 17638f5 commit 485869e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/code/Magento/Cron/Shell/CommandRendererBackground.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
2+
23
/**
34
* Copyright © Magento, Inc. All rights reserved.
45
* See COPYING.txt for license details.
56
*/
7+
68
namespace Magento\Cron\Shell;
79

810
use Magento\Framework\App\Filesystem\DirectoryList;
@@ -23,11 +25,7 @@ public function __construct(
2325
}
2426

2527
/**
26-
* Render command with arguments
27-
*
28-
* @param string $command
29-
* @param array $arguments
30-
* @return string
28+
* @inheritDoc
3129
*/
3230
public function render($command, array $arguments = []): string
3331
{
@@ -36,6 +34,7 @@ public function render($command, array $arguments = []): string
3634
$logFile = '/dev/null';
3735
if ($groupId = $arguments[2] ?? null) {
3836
$logDir = $this->filesystem->getDirectoryRead(DirectoryList::LOG)->getAbsolutePath();
37+
// @phpcs:ignore Magento2.Functions.DiscouragedFunction.Discouraged
3938
$logFile = escapeshellarg($logDir . 'magento.cron.' . $groupId . '.log');
4039
}
4140

0 commit comments

Comments
 (0)