Passed
Pull Request — master (#223)
by Nic
02:34
created

LocationExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A updateWebsiteURL() 0 3 1
1
<?php
2
3
namespace Dynamic\Locator\Tests\TestOnly\Extension;
4
5
use SilverStripe\Dev\TestOnly;
6
use SilverStripe\ORM\DataExtension;
7
8
/**
9
 * Class LocationExtension
10
 * @package Dynamic\Locator\Tests\Extension
11
 */
12
class LocationExtension extends DataExtension implements TestOnly
13
{
14
    /**
15
     * @param $url
16
     * @return string
17
     */
18
    public function updateWebsiteURL(&$url)
19
    {
20
        $url = 'foo';
21
    }
22
}
23