BadgeComponent   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 43
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A type() 0 3 1
A border() 0 3 1
A rounded() 0 3 1
A top() 0 3 1
1
<?php
2
3
namespace Lagdo\UiBuilder\Component\Base;
4
5
use Lagdo\UiBuilder\Component\HtmlComponent;
6
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
0 ignored issues
show
Unused Code introduced by
The parameter $type is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

27
    public function type(/** @scrutinizer ignore-unused */ string $type): static

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
28
    {
29
        return $this;
30
    }
31
32
    /**
33
     * @param string $rounded
34
     *
35
     * @return static
36
     */
37
    public function rounded(string $rounded): static
0 ignored issues
show
Unused Code introduced by
The parameter $rounded is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

37
    public function rounded(/** @scrutinizer ignore-unused */ string $rounded): static

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
38
    {
39
        return $this;
40
    }
41
42
    /**
43
     * @param string $border
44
     *
45
     * @return static
46
     */
47
    public function border(string $border): static
0 ignored issues
show
Unused Code introduced by
The parameter $border is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

47
    public function border(/** @scrutinizer ignore-unused */ string $border): static

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
48
    {
49
        return $this;
50
    }
51
}
52