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

JBZoo / CI-Report-Converter / 7295135930

14 Oct 2023 08:18PM UTC coverage: 94.375%. Remained the same
7295135930

push

github

web-flow
PHP CS Fixer - `ordered_types` (#40)

1426 of 1511 relevant lines covered (94.37%)

21.86 hits per line

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

0.0
/src/Formats/Source/FileRef.php
1
<?php
2

3
/**
4
 * JBZoo Toolbox - CI-Report-Converter.
5
 *
6
 * This file is part of the JBZoo Toolbox project.
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license    MIT
11
 * @copyright  Copyright (C) JBZoo.com, All rights reserved.
12
 * @see        https://github.com/JBZoo/CI-Report-Converter
13
 */
14

15
declare(strict_types=1);
16

17
namespace JBZoo\CIReportConverter\Formats\Source;
18

19
use JBZoo\CIReportConverter\Formats\AbstractNode;
20

21
final class FileRef extends AbstractNode
22
{
23
    public string  $name;
24
    public ?string $fullpath = null;
25
    public ?int    $line     = null;
26
    public ?int    $column   = null;
27

28
    public function getFullName(): string
29
    {
30
        $result = (string)$this->fullpath;
×
31
        if ($this->line > 0) {
×
32
            $result .= ":{$this->line}";
×
33
        }
34

35
        return $result;
×
36
    }
37

38
    public function getShortName(): string
39
    {
40
        $result = $this->name;
×
41
        if ($this->line > 0) {
×
42
            $result .= " on line {$this->line}";
×
43
        }
44

45
        return $result;
×
46
    }
47
}
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