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

mborne / git-manager / 14820042690

04 May 2025 09:55AM UTC coverage: 63.816% (-2.1%) from 65.942%
14820042690

push

github

web-flow
Merge pull request #35 from mborne/34-database

(closes #34)

67 of 86 new or added lines in 7 files covered. (77.91%)

7 existing lines in 1 file now uncovered.

194 of 304 relevant lines covered (63.82%)

0.64 hits per line

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

33.33
/src/Command/StatsCommand.php
1
<?php
2

3
namespace MBO\GitManager\Command;
4

5
use Psr\Log\LogLevel;
6
use Symfony\Component\Console\Command\Command;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Logger\ConsoleLogger;
9
use Symfony\Component\Console\Output\OutputInterface;
10

11
/**
12
 * Clone remote git projects to local directory.
13
 *
14
 * @author mborne
15
 */
16
class StatsCommand extends Command
17
{
18
    protected function configure(): void
19
    {
20
        $this
1✔
21
            ->setName('git:stats')
1✔
22
            ->setDescription('Compute stats on local repositories (DEPRECATED)')
1✔
23
        ;
1✔
24
    }
25

26
    protected function execute(InputInterface $input, OutputInterface $output): int
27
    {
UNCOV
28
        $logger = $this->createLogger($output);
×
29

NEW
30
        $logger->warning('[git:stats] command is deprecated, no more need to run it to extract metadata and run checks');
×
31

UNCOV
32
        return self::SUCCESS;
×
33
    }
34

35
    /**
36
     * Create console logger.
37
     */
38
    protected function createLogger(OutputInterface $output): ConsoleLogger
39
    {
UNCOV
40
        $verbosityLevelMap = [
×
UNCOV
41
            LogLevel::NOTICE => OutputInterface::VERBOSITY_NORMAL,
×
UNCOV
42
            LogLevel::INFO => OutputInterface::VERBOSITY_NORMAL,
×
UNCOV
43
        ];
×
44

UNCOV
45
        return new ConsoleLogger($output, $verbosityLevelMap);
×
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

© 2026 Coveralls, Inc