GlobalUtility   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTypoScriptFrontendController() 0 4 1
A getDatabaseConnection() 0 4 1
1
<?php
2
/**
3
 * Access for global methods
4
 *
5
 * @package Html5videoplayerPowermail\Utility
6
 * @author  Tim Lochmüller
7
 */
8
9
namespace HVP\Html5videoplayerPowermail\Utility;
10
11
use TYPO3\CMS\Core\Database\DatabaseConnection;
12
use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController;
13
14
/**
15
 * Access for global methods
16
 *
17
 * @author Tim Lochmüller
18
 */
19
class GlobalUtility
20
{
21
22
    /**
23
     * Get the TSFE
24
     *
25
     * @return TypoScriptFrontendController
26
     */
27
    public static function getTypoScriptFrontendController()
28
    {
29
        return $GLOBALS['TSFE'];
30
    }
31
32
    /**
33
     * Get the database connection
34
     *
35
     * @return DatabaseConnection
36
     */
37
    public static function getDatabaseConnection()
38
    {
39
        return $GLOBALS['TYPO3_DB'];
40
    }
41
}
42