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

MiscUtility::isV8Lts()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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