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

dragomano / scss-php / 23594295754

26 Mar 2026 12:19PM UTC coverage: 84.536%. First build
23594295754

push

github

web-flow
Merge pull request #51 from dragomano/refactor

Rewrite compiler

10140 of 12016 new or added lines in 162 files covered. (84.39%)

10272 of 12151 relevant lines covered (84.54%)

83.37 hits per line

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

62.5
/src/Exceptions/MissingFunctionArgumentsException.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Bugo\SCSS\Exceptions;
6

7
use function str_contains;
8

9
final class MissingFunctionArgumentsException extends SassArgumentException
10
{
11
    public function __construct(string $function, string $expected)
12
    {
13
        parent::__construct(self::formatFunctionReference($function) . " expects $expected.");
17✔
14
    }
15

16
    public static function count(string $function, int $expected, bool $atLeast = false): self
17
    {
NEW
18
        $qualifier = $atLeast ? 'at least ' : '';
×
NEW
19
        $suffix    = $expected > 1 ? 's' : '';
×
20

NEW
21
        return new self($function, "$qualifier$expected argument$suffix");
×
22
    }
23

24
    public static function required(string $function, string $argument): self
25
    {
26
        return new self($function, "required argument '$argument'");
3✔
27
    }
28

29
    private static function formatFunctionReference(string $function): string
30
    {
31
        if (str_contains($function, '()')) {
17✔
32
            return $function;
14✔
33
        }
34

35
        return "$function()";
3✔
36
    }
37
}
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