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

WebLibraryManagerRendererServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

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