GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 0b01a7...3b0906 )
by Odiseo
08:33
created

OrderRepository::findByNumberPart()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 1
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusReportPlugin\Repository;
6
7
use Sylius\Bundle\CoreBundle\Doctrine\ORM\OrderRepository as BaseOrderRepository;
8
9
/**
10
 * @author Diego D'amico <[email protected]>
11
 */
12
class OrderRepository extends BaseOrderRepository implements OrderRepositoryInterface
13
{
14
    public function findByNumberPart(string $number): array
15
    {
16
        return $this->createQueryBuilder('o')
17
            ->select('o.id, o.number')
18
            ->andWhere('o.number LIKE :number')
19
            ->setParameter('number', '%' . $number . '%')
20
            ->getQuery()
21
            ->getArrayResult()
22
        ;
23
    }
24
}
25