Configuration::getPlainTextWith()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 4
rs 10
cc 2
eloc 2
nc 2
nop 0
1
<?php
2
/**
3
 * Configuration object
4
 *
5
 * @author  Tim Lochmüller
6
 */
7
8
namespace FRUIT\Ink;
9
10
/**
11
 * Configuration object
12
 */
13
class Configuration
14
{
15
16
    /**
17
     * get the plaintext width
18
     *
19
     * @return int
20
     */
21
    public static function getPlainTextWith()
22
    {
23
        return isset($GLOBALS['TSFE']->config['config']['plainTextWith']) ? (int)$GLOBALS['TSFE']->config['config']['plainTextWith'] : 76;
24
    }
25
26
    /**
27
     * get the table mode
28
     *
29
     * @return string
30
     */
31
    public static function getTableMode()
32
    {
33
        return isset($GLOBALS['TSFE']->config['config']['tableMode']) && trim($GLOBALS['TSFE']->config['config']['tableMode']) !== '' ? trim($GLOBALS['TSFE']->config['config']['tableMode']) : 'default';
34
    }
35
36
    /**
37
     * check if the plain tables are 100 displayed
38
     *
39
     * @return string
40
     */
41
    public static function isPlainTable100()
42
    {
43
        return isset($GLOBALS['TSFE']->config['config']['plainTable100']) && trim($GLOBALS['TSFE']->config['config']['plainTable100']) !== '' ? (bool)$GLOBALS['TSFE']->config['config']['plainTable100'] : true;
44
    }
45
}
46