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

MyIntervals / PHP-CSS-Parser / 11665359676

04 Nov 2024 01:37PM UTC coverage: 38.622%. Remained the same
11665359676

push

github

web-flow
[TASK] Add a `fix` Composer script to run all code fixers (#759)

This makes our life as developers a bit more convenient.

Also run Rector before the style fixer as Rector is responsible for
structural changes that need to be style-fixed after that.

779 of 2017 relevant lines covered (38.62%)

5.33 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 $iLineNo;
13

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

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