| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class BadgeComponent extends HtmlComponent |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | public static string $tag = 'span'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @return static |
||
| 16 | */ |
||
| 17 | public function top(): static |
||
| 18 | { |
||
| 19 | return $this; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $type |
||
| 24 | * |
||
| 25 | * @return static |
||
| 26 | */ |
||
| 27 | public function type(string $type): static |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $rounded |
||
| 34 | * |
||
| 35 | * @return static |
||
| 36 | */ |
||
| 37 | public function rounded(string $rounded): static |
||
| 38 | { |
||
| 39 | return $this; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $border |
||
| 44 | * |
||
| 45 | * @return static |
||
| 46 | */ |
||
| 47 | public function border(string $border): static |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.