Completed
Push — 4.0 ( 6f2c9f...73108a )
by David
17s queued 11s
created

getTemplateDirectory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Mouf\Html\Utils\WebLibraryManager;
3
4
use Mouf\Html\Renderer\AbstractPackageRendererServiceProvider;
5
6
class WebLibraryManagerRendererServiceProvider extends AbstractPackageRendererServiceProvider
7
{
8
    /**
9
     * Returns the path to the templates directory.
10
     *
11
     * @return string
12
     */
13
    public static function getTemplateDirectory(): string
14
    {
15
        $path = \ComposerLocator::getPath('mouf/html.utils.weblibrarymanager');
0 ignored issues
show
Bug introduced by
The method getPath() does not seem to exist on object<ComposerLocator>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
16
        return $path.'/templates';
17
    }
18
}
19