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.

store.php ➔ frontend_store()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
1
<?php
2
3
if (! function_exists('frontend_store')) {
4
    /**
5
     * Set the specified value from the front-end store or get the front-end store.
6
     *
7
     * If a key and value are passed, we'll assume you want to put to the vue-store.
8
     *
9
     * @param  dynamic  key,value|null
10
     * @return \HiHaHo\LaravelJsStore\Store
11
     */
12
    function frontend_store()
13
    {
14
        $arguments = func_get_args();
15
16
        if (empty($arguments)) {
17
            return app('js-store');
18
        }
19
20
        return app('js-store')->put($arguments[0], $arguments[1]);
21
    }
22
}
23