Passed
Pull Request — master (#17)
by Gordon
02:56
created

Indexer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 2 1
1
<?php declare(strict_types = 1);
2
3
/**
4
 * Created by PhpStorm.
5
 * User: gordon
6
 * Date: 24/3/2561
7
 * Time: 20:36 น.
8
 */
9
10
namespace Suilven\FreeTextSearch\Tests\Mock;
11
12
use SilverStripe\ORM\DataObject;
13
14
// @phpcs:disable SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
15
class Indexer extends \Suilven\FreeTextSearch\Base\Indexer implements \Suilven\FreeTextSearch\Interfaces\Indexer
16
{
17
18
    // @phpstan-ignore-next-line
19
    public function index(DataObject $dataObject): void
20
    {
21
        // Do nothing, this is for testing, dev/build flush=all fails first up without this
22
    }
23
}
24