Completed
Push — master ( 2700b4...4ccb05 )
by Torben
04:03 queued 02:37
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
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