Completed
Push — master ( 045f74...468866 )
by WEBEWEB
02:14
created

BootstrapBundle.php (6 issues)

Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
/*
4
 * This file is part of the bootstrap-bundle package.
5
 *
6
 * (c) 2018 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\BootstrapBundle;
13
14
use Symfony\Component\HttpKernel\Bundle\Bundle;
15
use WBW\Bundle\CoreBundle\Provider\AssetsProviderInterface;
16
17
/**
18
 * Bootstrap bundle.
19
 *
20
 * @author webeweb <https://github.com/webeweb/>
21
 * @package WBW\Bundle\BootstrapBundle
22
 */
23
class BootstrapBundle extends Bundle implements AssetsProviderInterface {
24
25
    /**
26
     * Bootstrap "Danger".
27
     *
28
     * @var string
29
     * @deprecated since 2.2.0, use {@see WBW\Bundle\BootstrapBundle\BootstrapInterface} instead.
30
     */
31
    const BOOTSTRAP_DANGER = "danger";
32
33
    /**
34
     * Bootstrap "Default".
35
     *
36
     * @var string
37
     * @deprecated since 2.2.0, use {@see WBW\Bundle\BootstrapBundle\BootstrapInterface} instead.
38
     */
39
    const BOOTSTRAP_DEFAULT = "default";
40
41
    /**
42
     * Bootstrap "Info".
43
     *
44
     * @var string
45
     * @deprecated since 2.2.0, use {@see WBW\Bundle\BootstrapBundle\BootstrapInterface} instead.
46
     */
47
    const BOOTSTRAP_INFO = "info";
48
49
    /**
50
     * Bootstrap "Primary".
51
     *
52
     * @var string
53
     * @deprecated since 2.2.0, use {@see WBW\Bundle\BootstrapBundle\BootstrapInterface} instead.
54
     */
55
    const BOOTSTRAP_PRIMARY = "primary";
56
57
    /**
58
     * Bootstrap "Success".
59
     *
60
     * @var string
61
     * @deprecated since 2.2.0, use {@see WBW\Bundle\BootstrapBundle\BootstrapInterface} instead.
62
     */
63
    const BOOTSTRAP_SUCCESS = "success";
64
65
    /**
66
     * Bootstrap version 3.
67
     *
68
     * @var string
69
     */
70
    const BOOTSTRAP_VERSION_3 = "3.4.1";
71
72
    /**
73
     * Bootstrap version 4.
74
     *
75
     * @var string
76
     */
77
    const BOOTSTRAP_VERSION_4 = "4.3.1";
78
79
    /**
80
     * Bootstrap "Warning".
81
     *
82
     * @var string
83
     * @deprecated since 2.2.0, use {@see WBW\Bundle\BootstrapBundle\BootstrapInterface} instead.
84
     */
85
    const BOOTSTRAP_WARNING = "warning";
86
87
    /**
88
     * {@inheritdoc}
89
     */
90
    public function getAssetsRelativeDirectory() {
91
        return "/Resources/assets";
92
    }
93
94
    /**
95
     * Get the Bootstrap constants.
96
     *
97
     * @return array Returns the Bootstrap constants.
98
     */
99
    public static function getBootstrapConstants() {
100
        return [
101
            self::BOOTSTRAP_DANGER,
0 ignored issues
show
Deprecated Code introduced by
The constant WBW\Bundle\BootstrapBund...undle::BOOTSTRAP_DANGER has been deprecated with message: since 2.2.0, use {@see WBW\Bundle\BootstrapBundle\BootstrapInterface} instead.

This class constant has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.

Loading history...
102
            self::BOOTSTRAP_DEFAULT,
0 ignored issues
show
Deprecated Code introduced by
The constant WBW\Bundle\BootstrapBund...ndle::BOOTSTRAP_DEFAULT has been deprecated with message: since 2.2.0, use {@see WBW\Bundle\BootstrapBundle\BootstrapInterface} instead.

This class constant has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.

Loading history...
103
            self::BOOTSTRAP_INFO,
0 ignored issues
show
Deprecated Code introduced by
The constant WBW\Bundle\BootstrapBund...pBundle::BOOTSTRAP_INFO has been deprecated with message: since 2.2.0, use {@see WBW\Bundle\BootstrapBundle\BootstrapInterface} instead.

This class constant has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.

Loading history...
104
            self::BOOTSTRAP_PRIMARY,
0 ignored issues
show
Deprecated Code introduced by
The constant WBW\Bundle\BootstrapBund...ndle::BOOTSTRAP_PRIMARY has been deprecated with message: since 2.2.0, use {@see WBW\Bundle\BootstrapBundle\BootstrapInterface} instead.

This class constant has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.

Loading history...
105
            self::BOOTSTRAP_SUCCESS,
0 ignored issues
show
Deprecated Code introduced by
The constant WBW\Bundle\BootstrapBund...ndle::BOOTSTRAP_SUCCESS has been deprecated with message: since 2.2.0, use {@see WBW\Bundle\BootstrapBundle\BootstrapInterface} instead.

This class constant has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.

Loading history...
106
            self::BOOTSTRAP_WARNING,
0 ignored issues
show
Deprecated Code introduced by
The constant WBW\Bundle\BootstrapBund...ndle::BOOTSTRAP_WARNING has been deprecated with message: since 2.2.0, use {@see WBW\Bundle\BootstrapBundle\BootstrapInterface} instead.

This class constant has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.

Loading history...
107
        ];
108
    }
109
}
110