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.
Passed
Push — master ( b817f3...68c60c )
by Piyapan
03:19
created

LaravelSessionStore   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A flash() 0 3 1
1
<?php
2
namespace RaysTech\StarterKit\Supports;
3
use Illuminate\Session\Store;
4
5
class LaravelSessionStore implements SessionStore
6
{
7
    /**
8
     * @var Store
9
     */
10
    private $session;
11
    /**
12
     * Create a new session store instance.
13
     *
14
     * @param Store $session
15
     */
16
    function __construct(Store $session)
17
    {
18
        $this->session = $session;
19
    }
20
    /**
21
     * Flash a message to the session.
22
     *
23
     * @param string $name
24
     * @param array  $data
25
     */
26
    public function flash($name, $data)
27
    {
28
        $this->session->flash($name, $data);
29
    }
30
}