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

MyIntervals / PHP-CSS-Parser / 13101832949

02 Feb 2025 07:32PM UTC coverage: 45.68% (-0.06%) from 45.742%
13101832949

Pull #874

github

web-flow
Merge 0c78106c9 into cde73cd57
Pull Request #874: [TASK] Remove the deprecated `OutputFormat::level()`

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

809 of 1771 relevant lines covered (45.68%)

12.41 hits per line

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

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

3
declare(strict_types=1);
4

5
namespace Sabberworm\CSS\Parsing;
6

7
class SourceException extends \Exception
8
{
9
    /**
10
     * @var int
11
     */
12
    private $lineNumber;
13

14
    /**
15
     * @param string $sMessage
16
     * @param int $lineNumber
17
     */
18
    public function __construct($sMessage, $lineNumber = 0)
×
19
    {
20
        $this->lineNumber = $lineNumber;
×
21
        if ($lineNumber !== 0) {
×
22
            $sMessage .= " [line no: $lineNumber]";
×
23
        }
24
        parent::__construct($sMessage);
×
25
    }
×
26

27
    /**
28
     * @return int
29
     */
30
    public function getLineNo()
×
31
    {
32
        return $this->lineNumber;
×
33
    }
34
}
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