Skip to content

Commit 9cd00fa

Browse files
committed
Fix static tests.
1 parent bb861cc commit 9cd00fa

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

app/code/Magento/NewRelicReporting/Plugin/CommandPlugin.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\NewRelicReporting\Plugin;
78

89
use Magento\NewRelicReporting\Model\Config;
910
use Magento\NewRelicReporting\Model\NewRelicWrapper;
11+
use Symfony\Component\Console\Command\Command;
1012

13+
/**
14+
* Describe NewRelic commands plugin.
15+
*/
1116
class CommandPlugin
1217
{
1318
/**
@@ -32,7 +37,14 @@ public function __construct(
3237
$this->newRelicWrapper = $newRelicWrapper;
3338
}
3439

35-
public function beforeRun(\Symfony\Component\Console\Command\Command $command, ...$args)
40+
/**
41+
* Set NewRelic Transaction name before running command.
42+
*
43+
* @param Command $command
44+
* @param array $args
45+
* @return array
46+
*/
47+
public function beforeRun(Command $command, ...$args)
3648
{
3749
$this->newRelicWrapper->setTransactionName(
3850
sprintf('CLI %s', $command->getName())

0 commit comments

Comments
 (0)