Passed
Pull Request — master (#17)
by Filip
10:32 queued 05:37
created

NewRelicConfig::getDefaultTransactionName()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 2
nc 1
nop 0
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