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

conedevelopment / root / 15084089635

17 May 2025 10:00AM UTC coverage: 77.93% (+0.04%) from 77.891%
15084089635

push

github

web-flow
Modernize back-end.yml (#240)

3291 of 4223 relevant lines covered (77.93%)

36.04 hits per line

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

63.64
/src/Fields/Checkbox.php
1
<?php
2

3
namespace Cone\Root\Fields;
4

5
class Checkbox extends Select
6
{
7
    /**
8
     * The Blade template.
9
     */
10
    protected string $template = 'root::fields.checkbox';
11

12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function multiple(bool $value = true): static
×
16
    {
17
        return $this;
×
18
    }
19

20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function size(int $value): static
×
24
    {
25
        return $this;
×
26
    }
27

28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function newOption(mixed $value, string $label): Option
2✔
32
    {
33
        return parent::newOption($value, $label)
2✔
34
            ->class('form-check__control')
2✔
35
            ->setAttributes([
2✔
36
                'type' => 'checkbox',
2✔
37
                'name' => sprintf('%s[]', $this->getModelAttribute()),
2✔
38
            ]);
2✔
39
    }
40
}
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