TinyPngBundle::getJsPaths()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace TinyPngBundle;
4
5
use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
6
use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
7
8
/**
9
 * Class TinyPngBundle
10
 * @package TinyPngBundle
11
 * @codeCoverageIgnore
12
 */
13
class TinyPngBundle extends AbstractPimcoreBundle
14
{
15
    use PackageVersionTrait;
16
17
    /**
18
     * @return string
19
     */
20
    protected function getComposerPackageName(): string
21
    {
22
        return 'zephis/tiny-png-bundle';
23
    }
24
25
    /**
26
     * @return array|\Pimcore\Routing\RouteReferenceInterface[]|string[]
27
     */
28
    public function getJsPaths()
29
    {
30
        return [
31
            '/bundles/tinypng/js/pimcore/startup.js',
32
            '/bundles/tinypng/js/pimcore/config.js'
33
        ];
34
    }
35
}
36