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.
Completed
Push — dev-extbase-fluid ( ca9337...5837d7 )
by Alexander
03:40 queued 03:35
created

ThumbnailCustomElement::render()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 6
c 1
b 0
f 0
nc 2
nop 0
dl 0
loc 11
rs 10
1
<?php
2
declare(strict_types = 1);
3
namespace Kitodo\Dlf\Hooks;
4
5
use TYPO3\CMS\Backend\Form\Element\AbstractFormElement;
0 ignored issues
show
Bug introduced by
The type TYPO3\CMS\Backend\Form\Element\AbstractFormElement 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...
6
7
class ThumbnailCustomElement extends AbstractFormElement
8
{
9
    public function render()
10
    {
11
        // Custom TCA properties and other data can be found in $this->data, for example the above
12
        // parameters are available in $this->data['parameterArray']['fieldConf']['config']['parameters']
13
        $result = $this->initializeResultArray();
14
        if (!empty($this->data['databaseRow']['thumbnail'])) {
15
            $result['html'] = '<img alt="Thumbnail" title="" src="' . $this->data['databaseRow']['thumbnail'] . '" />';
16
        } else {
17
            $result['html'] = '';
18
        }
19
        return $result;
20
    }
21
}