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::setValues()   A

Complexity

Conditions 4
Paths 3

Size

Total Lines 14
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 4.1755

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 14
ccs 7
cts 9
cp 0.7778
rs 9.2
cc 4
eloc 6
nc 3
nop 1
crap 4.1755
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