Passed
Push — main ( 68e606...997043 )
by Thierry
02:29
created

BadgeComponent::border()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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