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.

ClearAndAllCache::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 10
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: htinlynn
5
 * Date: 11/28/18
6
 * Time: 4:12 PM
7
 */
8
9
namespace Genius\Commands;
10
11
use Arcanedev\Support\Bases\Command;
12
use Illuminate\Support\Facades\Artisan;
13
class ClearAndAllCache extends Command
14
{
15
16
    /**
17
     * The name and signature of the console command.
18
     *
19
     * @var string
20
     */
21
    protected $signature = 'all:clearandcache';
22
23
    /**
24
     * The console command description.
25
     *
26
     * @var string
27
     */
28
    protected $description = 'ClearAll Cache And Cache All';
29
30
    /**
31
     * Execute the console command.
32
     *
33
     * @return mixed
34
     */
35
    public function handle()
36
    {
37
        Artisan::call('config:clear');
38
        Artisan::call('route:clear');
39
        Artisan::call('view:clear');
40
        Artisan::call('cache:clear');
41
        Artisan::call('config:cache');
42
        $this->frame('All caches of config, route, view and cache are cleared.');
43
        $this->frame('And config cache');
44
        return 'Success';
45
    }
46
}