• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MyIntervals / PHP-CSS-Parser / 13267478804

11 Feb 2025 04:17PM UTC coverage: 49.156%. Remained the same
13267478804

Pull #910

github

web-flow
Merge ed5dea74d into b3e83b867
Pull Request #910: [CLEANUP] Avoid Hungarian notation for `outputFormat`

22 of 58 new or added lines in 18 files covered. (37.93%)

1 existing line in 1 file now uncovered.

932 of 1896 relevant lines covered (49.16%)

11.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

17.24
/src/CSSList/KeyFrame.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Sabberworm\CSS\CSSList;
6

7
use Sabberworm\CSS\OutputFormat;
8
use Sabberworm\CSS\Property\AtRule;
9

10
class KeyFrame extends CSSList implements AtRule
11
{
12
    /**
13
     * @var string|null
14
     */
15
    private $vendorKeyFrame;
16

17
    /**
18
     * @var string|null
19
     */
20
    private $animationName;
21

22
    /**
23
     * @param int<0, max> $lineNumber
24
     */
25
    public function __construct($lineNumber = 0)
3✔
26
    {
27
        parent::__construct($lineNumber);
3✔
28
        $this->vendorKeyFrame = null;
3✔
29
        $this->animationName = null;
3✔
30
    }
3✔
31

32
    /**
33
     * @param string $vendorKeyFrame
34
     */
35
    public function setVendorKeyFrame($vendorKeyFrame): void
×
36
    {
37
        $this->vendorKeyFrame = $vendorKeyFrame;
×
38
    }
×
39

40
    /**
41
     * @return string|null
42
     */
43
    public function getVendorKeyFrame()
×
44
    {
45
        return $this->vendorKeyFrame;
×
46
    }
47

48
    /**
49
     * @param string $animationName
50
     */
51
    public function setAnimationName($animationName): void
×
52
    {
53
        $this->animationName = $animationName;
×
54
    }
×
55

56
    /**
57
     * @return string|null
58
     */
59
    public function getAnimationName()
×
60
    {
61
        return $this->animationName;
×
62
    }
63

64
    public function __toString(): string
×
65
    {
66
        return $this->render(new OutputFormat());
×
67
    }
68

NEW
69
    public function render(OutputFormat $outputFormat): string
×
70
    {
NEW
71
        $sResult = $outputFormat->comments($this);
×
NEW
72
        $sResult .= "@{$this->vendorKeyFrame} {$this->animationName}{$outputFormat->spaceBeforeOpeningBrace()}{";
×
NEW
73
        $sResult .= $this->renderListContents($outputFormat);
×
74
        $sResult .= '}';
×
75
        return $sResult;
×
76
    }
77

78
    public function isRootList(): bool
×
79
    {
80
        return false;
×
81
    }
82

83
    /**
84
     * @return string|null
85
     */
86
    public function atRuleName()
×
87
    {
88
        return $this->vendorKeyFrame;
×
89
    }
90

91
    /**
92
     * @return string|null
93
     */
94
    public function atRuleArgs()
×
95
    {
96
        return $this->animationName;
×
97
    }
98
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc