TinyPngBundle   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getComposerPackageName() 0 3 1
A getJsPaths() 0 5 1
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