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
Push — master ( 5e6080...8d86d3 )
by Nico
07:00 queued 01:47
created

AbstractItemsLinks::getOtherImportTargetTable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @author Nicolas CARPi <[email protected]>
5
 * @copyright 2022 Nicolas CARPi
6
 * @see https://www.elabftw.net Official website
7
 * @license AGPL-3.0
8
 * @package elabftw
9
 */
10
11
declare(strict_types=1);
12
13
namespace Elabftw\Models;
14
15
use Elabftw\Enums\EntityType;
16
use Override;
0 ignored issues
show
Bug introduced by
The type Override 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...
17
18
/**
19
 * For links pointing to items
20
 */
21
abstract class AbstractItemsLinks extends AbstractLinks
22
{
23
    #[Override]
24
    protected function getTargetType(): EntityType
25
    {
26
        return EntityType::Items;
27
    }
28
29
    #[Override]
30
    protected function getCatTable(): string
31
    {
32
        return 'items_types';
33
    }
34
35
    #[Override]
36
    protected function getStatusTable(): string
37
    {
38
        return 'items_status';
39
    }
40
41
    #[Override]
42
    protected function getImportTargetTable(): string
43
    {
44
        return 'items2items';
45
    }
46
47
    #[Override]
48
    protected function getOtherImportTargetTable(): string
49
    {
50
        return 'items2experiments';
51
    }
52
53
    #[Override]
54
    protected function getTemplateTable(): string
55
    {
56
        if ($this->Entity instanceof Experiments || $this->Entity instanceof Templates) {
0 ignored issues
show
Bug introduced by
The type Elabftw\Models\Templates 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...
57
            return 'experiments_templates2items';
58
        }
59
        return 'items_types2items';
60
    }
61
62
    #[Override]
63
    protected function getRelatedTable(): string
64
    {
65
        if ($this->Entity instanceof Experiments) {
66
            return 'items2experiments';
67
        }
68
        return 'items2items';
69
    }
70
}
71