Conditions | 5 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 5.0729 |
Changes | 0 |
1 | <?php |
||
33 | 4 | public function generateBooleanRules(TemplateInspector $src) |
|
34 | { |
||
35 | 4 | $rules = []; |
|
36 | |||
37 | 4 | if ($src->allowsChild($this->p) && $src->isBlock() && !$this->p->closesParent($src)) |
|
|
|||
38 | { |
||
39 | $rules['createParagraphs'] = true; |
||
40 | } |
||
41 | |||
42 | 3 | if ($src->closesParent($this->p)) |
|
43 | { |
||
44 | 2 | $rules['breakParagraph'] = true; |
|
45 | } |
||
46 | |||
47 | 3 | return $rules; |
|
48 | } |
||
49 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.