Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

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.
Passed
Pull Request — dev-extbase-fluid (#737)
by
unknown
03:14
created

LibraryRepository::getLibraryByUidAndPid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 12
nc 1
nop 2
dl 0
loc 17
rs 9.8666
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * (c) Kitodo. Key to digital objects e.V. <[email protected]>
5
 *
6
 * This file is part of the Kitodo and TYPO3 projects.
7
 *
8
 * @license GNU General Public License version 3 or later.
9
 * For the full copyright and license information, please read the
10
 * LICENSE.txt file that was distributed with this source code.
11
 */
12
13
namespace Kitodo\Dlf\Domain\Repository;
14
15
class LibraryRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
16
{
17
18
    public function getLibraryByUidAndPid($uid, $pid) {
19
        // Get repository name and administrative contact.
20
        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
0 ignored issues
show
Bug introduced by
The type Kitodo\Dlf\Domain\Repository\ConnectionPool was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
Bug introduced by
The type Kitodo\Dlf\Domain\Repository\GeneralUtility was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
21
            ->getQueryBuilderForTable('tx_dlf_libraries');
22
23
        $result = $queryBuilder
0 ignored issues
show
Unused Code introduced by
The assignment to $result is dead and can be removed.
Loading history...
24
            ->select(
25
                'tx_dlf_libraries.oai_label AS oai_label',
26
                'tx_dlf_libraries.contact AS contact'
27
            )
28
            ->from('tx_dlf_libraries')
29
            ->where(
30
                $queryBuilder->expr()->eq('tx_dlf_libraries.pid', intval($pid)),
31
                $queryBuilder->expr()->eq('tx_dlf_libraries.uid', intval($uid))
32
            )
33
            ->setMaxResults(1)
34
            ->execute();
35
    }
36
37
}
38