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 (#744)
by
unknown
04:41 queued 01:54
created

ThumbnailCustomElement   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 11 2
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
}