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

MyIntervals / PHP-CSS-Parser / 12938832721

23 Jan 2025 09:59PM UTC coverage: 41.942% (+0.6%) from 41.369%
12938832721

Pull #800

github

web-flow
Merge ed97ed250 into 9e79e16ff
Pull Request #800: [FEATURE] Parse color functions with modern syntax

16 of 16 new or added lines in 1 file covered. (100.0%)

864 of 2060 relevant lines covered (41.94%)

6.39 hits per line

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

0.0
/src/Parsing/Anchor.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Sabberworm\CSS\Parsing;
6

7
/**
8
 * @internal since 8.7.0
9
 */
10
class Anchor
11
{
12
    /**
13
     * @var int
14
     */
15
    private $iPosition;
16

17
    /**
18
     * @var ParserState
19
     */
20
    private $oParserState;
21

22
    /**
23
     * @param int $iPosition
24
     */
25
    public function __construct($iPosition, ParserState $oParserState)
×
26
    {
27
        $this->iPosition = $iPosition;
×
28
        $this->oParserState = $oParserState;
×
29
    }
×
30

31
    public function backtrack(): void
×
32
    {
33
        $this->oParserState->setPosition($this->iPosition);
×
34
    }
×
35
}
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

© 2026 Coveralls, Inc