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 — 3.0 ( ec7cbd...c3085b )
by Vermeulen
02:42
created

Cookies   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createCookie() 0 5 1
1
<?php
2
3
namespace BFW\Helpers;
4
5
/**
6
 * Helpers to manage cookies
7
 */
8
class Cookies
9
{
10
    /**
11
     * Create a cookie
12
     * 
13
     * @param string $name The cookie's name
14
     * @param mixed $value The cookie's value
15
     * @param integer $expire The cookie's expire time
16
     * 
17
     * @return void
18
     */
19
    public static function createCookie($name, $value, $expire = 1209600)
20
    {
21
        $expireTime = time() + $expire;
22
        setcookie($name, $value, $expireTime);
23
    }
24
}
25