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.

Memory   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 43
rs 10
c 0
b 0
f 0
wmc 3
lcom 1
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A load() 0 4 1
A save() 0 4 1
A delete() 0 4 1
1
<?php
2
/**
3
 * Pimf
4
 *
5
 * @copyright Copyright (c)  Gjero Krsteski (http://krsteski.de)
6
 * @license   http://opensource.org/licenses/MIT MIT License
7
 */
8
9
namespace Pimf\Session\Storages;
10
11
/**
12
 * @package Session_Storages
13
 * @author  Gjero Krsteski <[email protected]>
14
 */
15
class Memory extends Storage
16
{
17
    /**
18
     * The session payload that will be returned by the storage.
19
     *
20
     * @var array
21
     */
22
    public $session;
23
24
    /**
25
     * Load a session from storage by a given ID.
26
     *
27
     * @param string $key
28
     *
29
     * @return array
30
     */
31
    public function load($key)
32
    {
33
        return $this->session;
34
    }
35
36
    /**
37
     * Save a given session to storage.
38
     *
39
     * @param array $session
40
     * @param array $config
41
     * @param bool  $exists
42
     */
43
    public function save($session, $config, $exists)
44
    {
45
        //...
46
    }
47
48
    /**
49
     * Delete a session from storage by a given ID.
50
     *
51
     * @param string $key
52
     */
53
    public function delete($key)
54
    {
55
        //...
56
    }
57
}
58