Completed
Push — master ( 543fe1...7ff5ba )
by diego
14:03
created

Utility::getDatabaseConnection()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
namespace HDNET\Importr;
5
6
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
7
8
/**
9
 * Description of Utility
10
 *
11
 * @author timlochmueller
12
 */
13
class Utility
14
{
15
    /**
16
     * Get TYPO3 Version
17
     *
18
     * @param  null $version
19
     * @return string
20
     */
21
    public static function getVersion($version = null)
22
    {
23
        if ($version === null) {
24
            $version = TYPO3_version;
25
        }
26
        return VersionNumberUtility::convertIntegerToVersionNumber($version);
0 ignored issues
show
Deprecated Code introduced by
The method TYPO3\CMS\Core\Utility\V...ntegerToVersionNumber() has been deprecated.

This method has been deprecated.

Loading history...
27
    }
28
}
29