Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
13 | public function build( $partialPath, array $args = [] ) |
||
14 | { |
||
15 | $className = glsr( Helper::class )->buildClassName( $partialPath, 'Modules\Html\Partials' ); |
||
16 | if( !class_exists( $className )) { |
||
17 | glsr_log()->error( 'Partial missing: '.$className ); |
||
18 | return; |
||
19 | } |
||
20 | $partial = glsr( $className )->build( $partialPath, $args ); |
||
1 ignored issue
–
show
|
|||
21 | return apply_filters( 'site-reviews/rendered/partial', $partial, $partialPath, $args ); |
||
22 | } |
||
33 |
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.