Completed
Push — master ( 2700b4...4ccb05 )
by Torben
04:03 queued 02:37
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
namespace DERHANSEN\SfEventMgt\Utility;
4
5
/*
6
 * This file is part of the Extension "sf_event_mgt" for TYPO3 CMS.
7
 *
8
 * For the full copyright and license information, please read the
9
 * LICENSE.txt file that was distributed with this source code.
10
 */
11
12
class MiscUtility
13
{
14
    /**
15
     * Returns, if the current TYPO3 version it 9.5 LTS
16
     *
17
     * @return bool
18
     */
19
    public static function isV9Lts(): bool
20
    {
21
        return version_compare(TYPO3_branch, '9.5', '=');
22
    }
23
24
    /**
25
     * Returns, if the current TYPO3 version it 8.7 LTS
26
     *
27
     * @return bool
28
     */
29
    public static function isV8Lts(): bool
30
    {
31
        return version_compare(TYPO3_branch, '8.7', '=');
32
    }
33
}
34