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.

Issues (149)

src/DataFetcher/BaseDataFetcher.php (1 issue)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusReportPlugin\DataFetcher;
6
7
use Odiseo\SyliusReportPlugin\Filter\QueryFilterInterface;
8
9
/**
10
 * @author Odiseo Team <[email protected]>
11
 */
12
abstract class BaseDataFetcher implements DataFetcherInterface
13
{
14
    protected QueryFilterInterface $queryFilter;
15
16
    public function __construct(QueryFilterInterface $queryFilter)
17
    {
18
        $this->queryFilter = $queryFilter;
19
    }
20
21
    /**
22
     * Responsible for setup and add filters to the base QueryFilter's Query builder
23
     */
24
    abstract protected function setupQueryFilter(array $configuration = []): void;
25
26
    /**
27
     * Responsible for providing raw data to fetch, from the configuration (ie: start date, end date, time period,
28
     * empty records flag, interval, period format, presentation format, group by).
29
     */
30
    protected function getData(array $configuration = []): array
31
    {
32
        $this->setupQueryFilter($configuration);
33
34
        return $this->queryFilter->getQueryBuilder()->getQuery()->getResult();
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->queryFilte...getQuery()->getResult() could return the type integer which is incompatible with the type-hinted return array. Consider adding an additional type-check to rule them out.
Loading history...
35
    }
36
}
37