Passed
Push — master ( a22df1...b7d463 )
by Simon
03:25
created

DataObjectExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A triggerReindex() 0 3 1
1
<?php
2
3
4
namespace Firesphere\SolrCompatibility\Extensions;
5
6
7
use SilverStripe\Core\Extension;
8
use SilverStripe\ORM\DataObject;
9
10
/**
11
 * Class \Firesphere\SolrCompatibility\Extensions\DataObjectExtension
12
 *
13
 * @property DataObject|DataObjectExtension $owner
14
 */
15
class DataObjectExtension extends Extension
16
{
17
18
    public function triggerReindex()
19
    {
20
        $this->owner->doReindex();
0 ignored issues
show
Bug introduced by
The method doReindex() does not exist on Firesphere\SolrCompatibi...ons\DataObjectExtension. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

20
        $this->owner->/** @scrutinizer ignore-call */ 
21
                      doReindex();

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
21
    }
22
}
23