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
Push — master ( 729110...d7d6ce )
by
unknown
03:40
created

AnnotationController::mainAction()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 15
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 3
eloc 9
c 1
b 0
f 0
nc 2
nop 0
dl 0
loc 15
rs 9.9666
1
<?php
2
3
namespace Kitodo\Dlf\Controller;
4
5
/**
6
 * (c) Kitodo. Key to digital objects e.V. <[email protected]>
7
 *
8
 * This file is part of the Kitodo and TYPO3 projects.
9
 *
10
 * @license GNU General Public License version 3 or later.
11
 * For the full copyright and license information, please read the
12
 * LICENSE.txt file that was distributed with this source code.
13
 */
14
15
use Kitodo\Dlf\Common\DocumentAnnotation;
16
17
/**
18
 * Controller class for plugin 'Annotation'.
19
 *
20
 * @package TYPO3
21
 * @subpackage dlf
22
 * @access public
23
 */
24
class AnnotationController extends AbstractController
25
{
26
    /**
27
     * The main method of the plugin
28
     *
29
     * @return void
30
     */
31
    public function mainAction()
32
    {
33
        $this->loadDocument();
34
35
        if (
36
            $this->document === null
37
            || $this->document->getCurrentDocument() === null
38
        ) {
39
            // Quit without doing anything if required variables are not set.
40
            return;
41
        } else {
42
            $documentAnnotation = DocumentAnnotation::getInstance($this->document);
43
44
            $this->view->assign('annotations', $documentAnnotation->getAnnotations());
45
            $this->view->assign('currentPage', $this->requestData['page']);
46
        }
47
    }
48
}
49