Issues (174)

src/Utility/ThemeHelper.php (2 issues)

1
<?php
2
3
namespace ByTIC\Hello\Utility;
4
5
/**
6
 * Class ThemeHelper
7
 * @package ByTIC\Hello\Utility
8
 */
9
class ThemeHelper
10
{
11
    protected static $theme = 'bootstrap5';
12
13
    /**
14
     * @param null $new
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $new is correct as it would always require null to be passed?
Loading history...
15
     * @return string|void
16
     */
17
    public static function theme($new = null)
18
    {
19
        if ($new !== null) {
0 ignored issues
show
The condition $new !== null is always false.
Loading history...
20
            return static::setTheme($new);
21
        }
22
        return static::$theme;
23
    }
24
25
    /**
26
     * @param string $new
27
     */
28
    protected static function setTheme($new)
29
    {
30
        static::$theme = $new;
31
    }
32
}
33