JavascriptProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 8
dl 0
loc 20
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getJavascripts() 0 8 1
1
<?php
2
3
/*
4
 * This file is part of the core-bundle package.
5
 *
6
 * (c) 2022 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\CoreBundle\Provider;
13
14
use WBW\Library\Symfony\Provider\JavascriptProviderInterface;
15
16
/**
17
 * Javascript provider.
18
 *
19
 * @author webeweb <https://github.com/webeweb>
20
 * @package WBW\Bundle\CoreBundle\Provider
21
 */
22
class JavascriptProvider implements JavascriptProviderInterface {
23
24
    /**
25
     * Service name.
26
     *
27
     * @var string
28
     */
29
    const SERVICE_NAME = "wbw.core.provider.javascript";
30
31
    /**
32
     * {@inheritDoc}
33
     */
34
    public function getJavascripts(): array {
35
36
        return [
37
            "WBWCoreJQueryInputMask"            => "@WBWCore/assets/WBWCoreJQueryInputMask.js.twig",
38
            "WBWCoreLeaflet"                    => "@WBWCore/assets/WBWCoreLeaflet.js.twig",
39
            "WBWCoreMaterialDesignColorPalette" => "@WBWCore/assets/WBWCoreMaterialDesignColorPalette.js.twig",
40
            "WBWCoreSweetAlert"                 => "@WBWCore/assets/WBWCoreSweetAlert.js.twig",
41
            "WBWCoreWaitMe"                     => "@WBWCore/assets/WBWCoreWaitMe.js.twig",
42
        ];
43
    }
44
}
45