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 ( 91b06d...b212a7 )
by Hong
03:05
created

ArrayAccessTrait::offsetSet()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
/**
3
 * Phossa Project
4
 *
5
 * PHP version 5.4
6
 *
7
 * @category  Library
8
 * @package   Phossa2\Config
9
 * @copyright Copyright (c) 2016 phossa.com
10
 * @license   http://mit-license.org/ MIT License
11
 * @link      http://www.phossa.com/
12
 */
13
/*# declare(strict_types=1); */
14
15
namespace Phossa2\Config\Traits;
16
17
/**
18
 * Implementation of ArrayAccess for Config
19
 *
20
 * @package Phossa2\Config
21
 * @author  Hong Zhang <[email protected]>
22
 * @version 2.0.0
23
 * @since   2.0.0 added
24
 */
25
trait ArrayAccessTrait
26
{
27
    public function offsetExists($offset)/*# : bool */
28
    {
29
        return $this->has($offset);
30
    }
31
32
    public function offsetGet($offset)
33
    {
34
        return $this->get($offset);
35
    }
36
37
    public function offsetSet($offset, $value)
38
    {
39
        $this->set($offset, $value);
40
    }
41
42
    public function offsetUnset($offset)
43
    {
44
        $this->set($offset, null);
45
    }
46
47
    abstract public function has(/*# string */ $key)/*# : bool */;
48
    abstract public function get(/*# string */ $key, $default = null);
49
    abstract public function set(/*# string */ $key, $value);
50
}
51