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 (#756)
by
unknown
04:10
created

JsFooterViewHelper::renderStatic()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 10
rs 10
1
<?php
2
/**
3
 * (c) Kitodo. Key to digital objects e.V. <[email protected]>
4
 *
5
 * This file is part of the Kitodo and TYPO3 projects.
6
 *
7
 * @license GNU General Public License version 3 or later.
8
 * For the full copyright and license information, please read the
9
 * LICENSE.txt file that was distributed with this source code.
10
 */
11
12
namespace Kitodo\Dlf\ViewHelpers;
13
14
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
15
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
16
use TYPO3\CMS\Core\Page\PageRenderer;
17
use TYPO3\CMS\Core\Utility\GeneralUtility;
18
19
/**
20
 * Add inline JavaScript code to footer *
21
 */
22
class JsFooterViewHelper extends AbstractViewHelper
23
{
24
    /**
25
     * Initialize arguments.
26
     */
27
    public function initializeArguments()
28
    {
29
        parent::initializeArguments();
30
        $this->registerArgument('inlineCode', 'string', 'Inline JavaScript', true);
31
    }
32
33
    /**
34
     *
35
     * @param array $arguments
36
     * @param \Closure $renderChildrenClosure
37
     * @param RenderingContextInterface $renderingContext
38
     */
39
    public static function renderStatic(
40
        array $arguments,
41
        \Closure $renderChildrenClosure,
42
        RenderingContextInterface $renderingContext
43
    ) {
44
        $inlineCode = $arguments['inlineCode'];
45
46
        /** @var $pageRenderer PageRenderer */
47
        $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
48
        $pageRenderer->addJsFooterInlineCode('js-dlf-inline-footer', $inlineCode);
49
    }
50
}
51