Passed
Push — 4 ( 529852...87c3e3 )
by Steve
10:18
created

TestContentForSearchIndexExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A updateContentForSearchIndex() 0 3 1
1
<?php
2
3
namespace DNADesign\Elemental\Tests\Src;
4
5
use SilverStripe\Core\Extension;
6
use SilverStripe\Dev\TestOnly;
7
8
class TestContentForSearchIndexExtension extends Extension implements TestOnly
9
{
10
    public function updateContentForSearchIndex(&$content)
11
    {
12
        $content = 'This is the updated content.';
13
    }
14
}
15