Skip to content

Commit 79294cf

Browse files
ACPT-1634
Fixing static test failures
1 parent 3fbdf1c commit 79294cf

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

app/code/Magento/ApplicationPerformanceMonitor/Profiler/Profiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function doProfile(callable $functionBeingProfiled, Application $applicat
7373
*
7474
* @param Metrics $beforeMetrics
7575
* @param Metrics $afterMetrics
76-
* @param Metrics|null $previousAfterMetrics,
76+
* @param Metrics|null $previousAfterMetrics
7777
* @param array $information extra information that we send to output
7878
* @return void
7979
*/

app/code/Magento/ApplicationPerformanceMonitorNewRelic/Profiler/Output/NewRelicOutput.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ class NewRelicOutput implements OutputInterface
2121
public const CONFIG_VERBOSE_KEY = 'application/performance_monitor/newrelic_output_verbose';
2222

2323
public function __construct(
24-
private readonly DeploymentConfig $deploymentConfig, private readonly NewRelicWrapper $newRelicWrapper)
25-
{
24+
private readonly DeploymentConfig $deploymentConfig,
25+
private readonly NewRelicWrapper $newRelicWrapper
26+
) {
2627
}
2728

2829
/**
@@ -59,6 +60,11 @@ public function doOutput(array $metrics, array $information) : void
5960
}
6061
}
6162

63+
/**
64+
* Is configured to output verbose
65+
*
66+
* @return bool
67+
*/
6268
private function isVerbose(): bool
6369
{
6470
return match ($this->deploymentConfig->get(static::CONFIG_VERBOSE_KEY)) {

dev/tests/integration/testsuite/Magento/GraphQl/App/State/Collector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
/**
1515
* Collects shared objects from ObjectManager and copies properties for later comparison
16+
*
17+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1618
*/
1719
class Collector
1820
{

dev/tests/integration/testsuite/Magento/GraphQl/App/State/ObjectManagerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Weakmap;
1212

1313
/**
14-
*
14+
* Interface for ObjectManager that has additional methods used by Collector for comparing state
1515
*/
1616
interface ObjectManagerInterface extends FrameworkObjectManagerInterface
1717
{

0 commit comments

Comments
 (0)