Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Pull Request — master (#7)
by Jérémiah
09:24
created

Argument::offsetUnset()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the OverblogGraphQLBundle package.
5
 *
6
 * (c) Overblog <http://github.com/overblog/>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Overblog\GraphQLBundle\Definition;
13
14
class Argument implements \ArrayAccess, \Countable
15
{
16
    /**
17
     * @var array
18
     */
19
    private $arguments;
20
21 29
    public function __construct(array $arguments = null)
22
    {
23 29
        $this->arguments = null === $arguments ? [] : $arguments;
24 29
    }
25
26 1
    public function offsetExists($offset)
27
    {
28 1
        return isset($this->arguments[$offset]);
29
    }
30
31 3
    public function offsetGet($offset)
32
    {
33 3
        return isset($this->arguments[$offset]) ? $this->arguments[$offset] : null;
34
    }
35
36 1
    public function offsetSet($offset, $value)
37
    {
38 1
        $this->arguments[$offset] = $value;
39 1
    }
40
41 1
    public function offsetUnset($offset)
42
    {
43 1
        unset($this->arguments[$offset]);
44 1
    }
45
46 7
    public function getRawArguments()
47
    {
48 7
        return $this->arguments;
49
    }
50
51 1
    public function count()
52
    {
53 1
        return count($this->arguments);
54
    }
55
}
56