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.

UsesReflection::getReflectionProperties()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
eloc 5
nc 2
nop 1
dl 0
loc 10
ccs 6
cts 6
cp 1
crap 2
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace SmsaSDK\Concerns;
4
5
trait UsesReflection
6
{
7
    /**
8
     * getReflectionProperties
9
     * Insert description here.
10
     *
11
     * @param $reflection
12
     *
13
     * @return
14
     */
15 5
    private function getReflectionProperties($reflection)
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
16
    {
17 5
        $properties = [];
18
19 5
        foreach ($reflection->getProperties() as $property) {
20 5
            $properties[] = $property->name;
21 5
        }
22
23 5
        return $properties;
24
    }
25
}
26