View::generateBasePath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 6
ccs 0
cts 5
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace ByTIC\MediaLibraryModule\Application\Library\View;
4
5
use ByTIC\MediaLibraryModule\MediaModule;
6
use Nip\Utility\Traits\SingletonTrait;
7
8
/**
9
 * Class View
10
 * @package ByTIC\MediaLibraryModule\Application\Library\View
11
 */
12
class View extends \Nip\View
13
{
14
    use SingletonTrait;
15
16
    /** @noinspection PhpMissingParentCallCommonInspection
17
     *
18
     * @return string
19
     */
20
    protected function generateBasePath()
21
    {
22
        return MediaModule::basePath()
23
            . DIRECTORY_SEPARATOR . 'src'
24
            . DIRECTORY_SEPARATOR . 'resources'
25
            . DIRECTORY_SEPARATOR . 'views';
26
    }
27
}
28