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.

CommonParameter::getMetadata()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace ShippoClient\Http\Request;
4
5
use TurmericSpice\ReadWriteAttributes;
6
7
class CommonParameter
8
{
9
    use ReadWriteAttributes;
10
11
    /**
12
     * A string of up to 100 characters
13
     * that can be filled with any additional information you want to attach to the object.
14
     *
15
     * @return string
16
     */
17
    public function getMetadata()
18
    {
19
        return $this->attributes->mayHave('metadata')->asString(function ($metadata) {
20
            return mb_strlen($metadata) <= 100;
21
        });
22
    }
23
}
24