WebpackEncorePluginConfiguration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getOutputPath() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the WebpackEncore plugin for Micro Framework.
7
 * (c) Oleksii Bulba <[email protected]>
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 OleksiiBulba\WebpackEncorePlugin;
13
14
use Micro\Framework\Kernel\Configuration\PluginConfiguration;
15
16
/**
17
 * @codeCoverageIgnore
18
 */
19
class WebpackEncorePluginConfiguration extends PluginConfiguration implements WebpackEncorePluginConfigurationInterface
20
{
21
    public const CFG_OUTPUT_PATH = 'WEBPACK_ENCORE_OUTPUT_PATH';
22
23
    public function getOutputPath(): string
24
    {
25
        return (string) $this->configuration->get(self::CFG_OUTPUT_PATH,
26
            ((string) $this->configuration->get('BASE_PATH')).'/public/build'
27
        );
28
    }
29
}
30