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

mallardduck / extended-validator-laravel / 4197253969

pending completion
4197253969

push

github

Dan Pock
update more actions

240 of 250 relevant lines covered (96.0%)

111.23 hits per line

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

66.67
/src/Rules/MacAddress.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace MallardDuck\ExtendedValidator\Rules;
6

7
final class MacAddress extends BaseRule
8
{
9
    public function __construct()
10
    {
11
        parent::__construct(
208✔
12
            static function (
208✔
13
                string $attribute,
104✔
14
                $value
104✔
15
            ) {
104✔
16
                return filter_var($value, FILTER_VALIDATE_MAC) !== false;
×
17
            },
156✔
18
            'The :attribute field must be a valid MAC address.'
156✔
19
        );
104✔
20
    }
52✔
21
}
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