Completed
Pull Request — 2.0 (#1059)
by Nick
02:12
created

RelativeWebPathResolver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 2
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A resolve() 0 4 1
1
<?php
2
3
namespace Liip\ImagineBundle\Imagine\Cache\Resolver;
4
5
class RelativeWebPathResolver extends AbstractWebPathResolver
6
{
7
    /**
8
     * {@inheritdoc}
9
     */
10
    public function resolve($path, $filter)
11
    {
12
        return sprintf('/%s', $this->getPathResolver()->getFileUrl($path, $filter));
13
    }
14
}
15