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

LocationExtension::updateWebsiteURL()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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