| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | public function render( array $attributes ) |
||
| 55 | { |
||
| 56 | $attributes['class'] = $attributes['className']; |
||
| 57 | $shortcode = glsr( Shortcode::class ); |
||
| 58 | if( filter_input( INPUT_GET, 'context' ) == 'edit' ) { |
||
| 59 | $attributes = $this->normalize( $attributes ); |
||
| 60 | $this->filterShortcodeClass(); |
||
| 61 | if( !$this->hasVisibleFields( $shortcode, $attributes )) { |
||
| 62 | $this->filterInterpolation(); |
||
| 63 | } |
||
| 64 | } |
||
| 65 | return $shortcode->buildShortcode( $attributes ); |
||
| 66 | } |
||
| 90 |