Completed
Push — development ( c889d1...e38cfd )
by Torben
04:08
created

MiscUtility   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isV9Lts() 0 4 1
A isV8Lts() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace DERHANSEN\SfEventMgt\Utility;
5
6
/*
7
 * This file is part of the Extension "sf_event_mgt" for TYPO3 CMS.
8
 *
9
 * For the full copyright and license information, please read the
10
 * LICENSE.txt file that was distributed with this source code.
11
 */
12
13
class MiscUtility
14
{
15
    /**
16
     * Returns, if the current TYPO3 version it 9.5 LTS
17
     *
18
     * @return bool
19
     */
20
    public static function isV9Lts(): bool
21
    {
22
        return version_compare(TYPO3_branch, '9.5', '=');
23
    }
24
25
    /**
26
     * Returns, if the current TYPO3 version it 8.7 LTS
27
     *
28
     * @return bool
29
     */
30
    public static function isV8Lts(): bool
31
    {
32
        return version_compare(TYPO3_branch, '8.7', '=');
33
    }
34
}
35