Skip to content

Commit b9ee593

Browse files
committed
Typehint params and add DocBlock
1 parent a22b31b commit b9ee593

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\NewRelicReporting\Plugin;
77

8+
use Magento\Framework\App\Bootstrap;
89
use Magento\Framework\App\Http;
910
use Magento\NewRelicReporting\Model\Config;
1011
use Magento\NewRelicReporting\Model\NewRelicWrapper;
@@ -33,7 +34,17 @@ public function __construct(
3334
$this->newRelicWrapper = $newRelicWrapper;
3435
}
3536

36-
public function beforeCatchException(Http $subject, $bootstrap, $exception)
37+
/**
38+
* Report exception to New Relic
39+
*
40+
* @param Http $subject
41+
* @param Bootstrap $bootstrap
42+
* @param \Exception $exception
43+
* @return void
44+
*
45+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
46+
*/
47+
public function beforeCatchException(Http $subject, Bootstrap $bootstrap, \Exception $exception)
3748
{
3849
if ($this->config->isNewRelicEnabled()) {
3950
$this->newRelicWrapper->reportError($exception);

0 commit comments

Comments
 (0)