Passed
Push — bugfix/sc-7611/bad-transaction... ( 1873c9 )
by Filip
06:21 queued 13s
created

NewRelicConfig   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 2
c 1
b 0
f 1
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDefaultTransactionName() 0 3 2
1
<?php
2
3
namespace SprykerEco\Service\NewRelic;
4
5
use Spryker\Service\Kernel\AbstractBundleConfig;
6
7
class NewRelicConfig extends AbstractBundleConfig
8
{
9
    /**
10
     * @return string
11
     */
12
    public function getDefaultTransactionName(): string
13
    {
14
        return APPLICATION . ':' . $_SERVER['REQUEST_METHOD'] . (strtok($_SERVER['REQUEST_URI'], '?') ?: '/');
15
    }
16
}
17