| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | protected function transform():string{ |
||
| 26 | |||
| 27 | if(empty($this->content)){ |
||
| 28 | return ''; |
||
| 29 | } |
||
| 30 | |||
| 31 | $align_attr = ['left', 'center', 'right', 'justify', 'start', 'end', 'inherit']; |
||
| 32 | $tag = $this->tagIn(['p', 'div'], 'p'); |
||
| 33 | $align = $this->tagIn($align_attr, ''); |
||
| 34 | |||
| 35 | if(!$align){ |
||
| 36 | $align = $this->attributeIn('align', $align_attr, 'left'); |
||
| 37 | } |
||
| 38 | |||
| 39 | return '<'.$tag.' class="bb-container '.$align.'">'.$this->content.'</'.$tag.'>'; |
||
| 40 | } |
||
| 41 | } |
||
| 42 |