| Conditions | 4 |
| Paths | 8 |
| Total Lines | 20 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function generateBooleanRules(TemplateForensics $src) |
||
| 35 | { |
||
| 36 | $rules = []; |
||
| 37 | if ($src->isTransparent()) |
||
| 38 | { |
||
| 39 | $rules['isTransparent'] = true; |
||
| 40 | } |
||
| 41 | if (!$src->allowsChild($this->br)) |
||
| 42 | { |
||
| 43 | $rules['preventLineBreaks'] = true; |
||
| 44 | $rules['suspendAutoLineBreaks'] = true; |
||
| 45 | } |
||
| 46 | if (!$src->allowsDescendant($this->br)) |
||
| 47 | { |
||
| 48 | $rules['disableAutoLineBreaks'] = true; |
||
| 49 | $rules['preventLineBreaks'] = true; |
||
| 50 | } |
||
| 51 | |||
| 52 | return $rules; |
||
| 53 | } |
||
| 54 | |||
| 72 | } |