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

php-coveralls / php-coveralls / 3826257010

pending completion
3826257010

push

github

GitHub
DX: Update PHP CS Fixer to ^3.13.2 (#355)

49 of 53 new or added lines in 15 files covered. (92.45%)

41 existing lines in 7 files now uncovered.

1562 of 1648 relevant lines covered (94.78%)

10.32 hits per line

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

0.0
/src/Bundle/CoverallsBundle/Console/Application.php
1
<?php
2

3
namespace PhpCoveralls\Bundle\CoverallsBundle\Console;
4

5
use PhpCoveralls\Bundle\CoverallsBundle\Command\CoverallsJobsCommand;
6
use Symfony\Component\Console\Application as BaseApplication;
7
use Symfony\Component\Console\Input\InputInterface;
8

9
/**
10
 * Coveralls API application.
11
 *
12
 * @author Kitamura Satoshi <with.no.parachute@gmail.com>
13
 */
14
class Application extends BaseApplication
15
{
16
    /**
17
     * Path to project root directory.
18
     *
19
     * @var string
20
     */
21
    private $rootDir;
22

23
    /**
24
     * Constructor.
25
     *
26
     * @param string $rootDir path to project root directory
27
     * @param string $name    The name of the application
28
     * @param string $version The version of the application
29
     */
30
    public function __construct($rootDir, $name = 'UNKNOWN', $version = 'UNKNOWN')
31
    {
UNCOV
32
        $this->rootDir = $rootDir;
×
33

UNCOV
34
        parent::__construct($name, $version);
×
35
    }
36

37
    // accessor
38

39
    /**
40
     * {@inheritdoc}
41
     *
42
     * @see \Symfony\Component\Console\Application::getDefinition()
43
     */
44
    public function getDefinition()
45
    {
UNCOV
46
        $inputDefinition = parent::getDefinition();
×
47
        // clear out the normal first argument, which is the command name
UNCOV
48
        $inputDefinition->setArguments();
×
49

UNCOV
50
        return $inputDefinition;
×
51
    }
52

53
    // internal method
54

55
    /**
56
     * {@inheritdoc}
57
     *
58
     * @see \Symfony\Component\Console\Application::getCommandName()
59
     */
60
    protected function getCommandName(InputInterface $input)
61
    {
UNCOV
62
        return 'coveralls:v1:jobs';
×
63
    }
64

65
    /**
66
     * {@inheritdoc}
67
     *
68
     * @see \Symfony\Component\Console\Application::getDefaultCommands()
69
     */
70
    protected function getDefaultCommands()
71
    {
72
        // Keep the core default commands to have the HelpCommand
73
        // which is used when using the --help option
UNCOV
74
        $defaultCommands = parent::getDefaultCommands();
×
75

UNCOV
76
        $defaultCommands[] = $this->createCoverallsJobsCommand();
×
77

UNCOV
78
        return $defaultCommands;
×
79
    }
80

81
    /**
82
     * Create CoverallsJobsCommand.
83
     *
84
     * @return \PhpCoveralls\Bundle\CoverallsBundle\Console\CoverallsJobsCommand
85
     */
86
    protected function createCoverallsJobsCommand()
87
    {
UNCOV
88
        $command = new CoverallsJobsCommand();
×
UNCOV
89
        $command->setRootDir($this->rootDir);
×
90

UNCOV
91
        return $command;
×
92
    }
93
}
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