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.
Completed
Push — master ( 7edffd...d90633 )
by
unknown
7s
created

PropertyInteger   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 77.78%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 4
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 22
ccs 7
cts 9
cp 0.7778
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setValues() 0 14 4
1
<?php
2
namespace Dkd\PhpCmis\DataObjects;
3
4
/**
5
 * This file is part of php-cmis-lib.
6
 *
7
 * (c) Sascha Egerer <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
use Dkd\PhpCmis\Data\MutablePropertyIntegerInterface;
14
15
/**
16
 * Integer property data implementation.
17
 */
18
class PropertyInteger extends AbstractPropertyData implements MutablePropertyIntegerInterface
19
{
20
    /**
21
     * {@inheritdoc}
22
     *
23
     * @param integer[] $values
24
     */
25 21
    public function setValues(array $values)
26
    {
27
28 21
        foreach ($values as & $value) {
29 21
            if (PHP_INT_SIZE == 4 && is_double($value)) {
30
                //TODO: 32bit - handle this specially?
31
                $value = $this->castValueToSimpleType('integer', $value);
32
            }
33
34 21
            $this->checkType('integer', $value, true);
35 15
        }
36
37 15
        parent::setValues($values);
38 15
    }
39
}
40