| Conditions | 5 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | public function render(): void |
||
| 10 | { |
||
| 11 | $licensing = glsr(License::class)->status(); |
||
| 12 | if ($licensing['isSaved'] && $licensing['isValid']) { |
||
| 13 | return; |
||
| 14 | } |
||
| 15 | if ($this->isDismissed() && $licensing['isValid']) { |
||
| 16 | return; |
||
| 17 | } |
||
| 18 | glsr()->render('partials/notices/license', $licensing); |
||
| 19 | } |
||
| 42 |