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

mborne / git-manager / 30773488959

03 Aug 2026 12:01AM UTC coverage: 88.138% (+37.5%) from 50.646%
30773488959

push

github

web-flow
Merge pull request #49 from mborne/gitleak

Gitleak and refactoring

511 of 565 new or added lines in 27 files covered. (90.44%)

691 of 784 relevant lines covered (88.14%)

8.25 hits per line

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

16.67
/src/Repository/ProjectRepository.php
1
<?php
2

3
namespace MBO\GitManager\Repository;
4

5
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
6
use Doctrine\Persistence\ManagerRegistry;
7
use MBO\GitManager\Entity\Project;
8

9
/**
10
 * @extends ServiceEntityRepository<Project>
11
 */
12
final class ProjectRepository extends ServiceEntityRepository
13
{
14
    public function __construct(ManagerRegistry $registry)
15
    {
16
        parent::__construct($registry, Project::class);
5✔
17
    }
18

19
    /**
20
     * Find projects with a full name starting with a given prefix
21
     * (ex : "github.com" or "github.com/IGNF").
22
     *
23
     * @return Project[]
24
     */
25
    public function findByPrefix(string $prefix): array
26
    {
NEW
27
        return $this->createQueryBuilder('p')
×
NEW
28
            ->where('p.fullName LIKE :prefix')
×
NEW
29
            ->setParameter('prefix', addcslashes($prefix, '%_\\').'%')
×
NEW
30
            ->getQuery()
×
NEW
31
            ->getResult();
×
32
    }
33
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc