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

php-bug-catcher / bug-catcher / 20456731454

23 Dec 2025 09:21AM UTC coverage: 85.729% (-3.4%) from 89.142%
20456731454

push

github

web-flow
Merge pull request #17 from php-bug-catcher/selection

Added selection functionality to logs for batch proccesing

2 of 16 new or added lines in 3 files covered. (12.5%)

20 existing lines in 5 files now uncovered.

829 of 967 relevant lines covered (85.73%)

13.08 hits per line

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

66.67
/src/Repository/RecordLogRepository.php
1
<?php
2

3
namespace BugCatcher\Repository;
4

5
use DateTimeImmutable;
6
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
7
use Doctrine\ORM\QueryBuilder;
8
use Doctrine\Persistence\ManagerRegistry;
9
use BugCatcher\Entity\Record;
10
use BugCatcher\Entity\RecordLog;
11
use BugCatcher\Entity\RecordStatus;
12
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
13

14
/**
15
 * @extends ServiceEntityRepository<Record>
16
 *
17
 * @method Record|null find($id, $lockMode = null, $lockVersion = null)
18
 * @method Record|null findOneBy(array $criteria, array $orderBy = null)
19
 * @method Record[]    findAll()
20
 * @method Record[]    findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
21
 */
22
final class RecordLogRepository extends ServiceEntityRepository implements RecordRepositoryInterface
23
{
24
        public function __construct(
25
                ManagerRegistry $registry,
26
        private readonly RecordRepositoryInterface $recordRepository,
27
        ) {
28
        parent::__construct($registry, RecordLog::class);
74✔
29
        }
30

31
    public function setStatusBetween(
32
        array $projects,
33
                DateTimeImmutable $from,
34
                DateTimeImmutable $to,
35
        string $newStatus,
36
        string $previousStatus = 'new',
37
                ?callable $qbCreator = null
38
    ): void {
UNCOV
39
        $this->recordRepository->setStatusBetween($projects, $from, $to, $newStatus, $previousStatus, $qbCreator);
×
40
    }
41

42
    public function setStatus(
43
        Record $log,
44
                DateTimeImmutable $lastDate,
45
        string $newStatus,
46
        string $previousStatus = 'new',
47
        bool $flush = false,
48
                ?callable $qbCreator = null
49
    ) {
50
        $this->recordRepository->setStatus($log, $lastDate, $newStatus, $previousStatus, $flush, $qbCreator);
4✔
51
    }
52

53
}
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