| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 4 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 12 | class Module extends DiviModule |
||
| 13 | { |
||
| 14 | public static function blockName(): string |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * This method is equivalent to "module-styles.tsx". |
||
| 21 | */ |
||
| 22 | public static function module_styles(array $args): void |
||
| 23 | { |
||
| 24 | parent::module_styles($args); |
||
| 25 | $args = glsr(ModuleStylesDefaults::class)->merge($args); |
||
| 26 | $elements = $args['elements']; |
||
| 27 | Style::add([ |
||
| 28 | 'id' => $args['id'], |
||
| 29 | 'name' => $args['name'], |
||
| 30 | 'orderIndex' => $args['orderIndex'], |
||
| 31 | 'storeInstance' => $args['storeInstance'], |
||
| 32 | 'styles' => [ |
||
| 33 | $elements->style([ |
||
| 34 | 'attrName' => 'button', |
||
| 35 | ]), |
||
| 36 | ], |
||
| 37 | ]); |
||
| 38 | } |
||
| 39 | |||
| 40 | public static function shortcodeInstance(): ShortcodeContract |
||
| 47 | } |
||
| 48 | } |
||
| 49 |