Passed
Push — master ( ca7167...276d5c )
by Fabian
06:10
created

PhpVersion   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 6
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPhpVersion() 0 4 1
1
<?php
2
3
namespace Firegento\DevDashboard\ViewModel\Widget;
4
5
use Magento\Framework\View\Element\Block\ArgumentInterface;
6
7
class PhpVersion implements ArgumentInterface
8
{
9
    public function getPhpVersion()
10
    {
11
        $phpVersionSplit = explode('-', PHP_VERSION, 2);
12
        return reset($phpVersionSplit);
13
    }
14
}