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.

HtmlField   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 19
c 2
b 0
f 0
rs 10
ccs 2
cts 2
cp 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAppendedAttributes() 0 4 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace BristolSU\Module\StaticPage\VueFields;
4
5
use FormSchema\Schema\Field;
6
7
class HtmlField extends Field
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class HtmlField
Loading history...
8
{
9
10
    protected $type = 'staticPageHtml';
11
12
    /**
13
     * TinyMCE API key for the HTML editor.
14
     *
15
     * @var string
16
     */
17
    protected $apiKey = '';
18
19
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
20
     * @inheritDoc
21
     */
0 ignored issues
show
Coding Style introduced by
Missing @return tag in function comment
Loading history...
22 1
    public function getAppendedAttributes(): array
23
    {
24
       return [
0 ignored issues
show
Coding Style introduced by
Line indented incorrectly; expected at least 8 spaces, found 7
Loading history...
25 1
           'apiKey' => $this->apiKey
26
       ];
0 ignored issues
show
Coding Style introduced by
Line indented incorrectly; expected at least 8 spaces, found 7
Loading history...
27
    }
28
}
29