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

MyIntervals / PHP-CSS-Parser / 13334861064

14 Feb 2025 06:08PM UTC coverage: 50.421%. Remained the same
13334861064

push

github

web-flow
[CLEANUP] Avoid Hungarian notation for `result` (#924)

Part of #756

Co-authored-by: JakeQZ <jake.github@qzdesign.co.uk>

49 of 100 new or added lines in 13 files covered. (49.0%)

2 existing lines in 2 files now uncovered.

958 of 1900 relevant lines covered (50.42%)

11.51 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

69
    public function render(OutputFormat $outputFormat): string
×
70
    {
NEW
71
        $result = $outputFormat->comments($this);
×
NEW
72
        $result .= "@{$this->vendorKeyFrame} {$this->animationName}{$outputFormat->spaceBeforeOpeningBrace()}{";
×
NEW
73
        $result .= $this->renderListContents($outputFormat);
×
NEW
74
        $result .= '}';
×
NEW
75
        return $result;
×
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