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 — master ( 560752...2363e1 )
by Shea
02:46
created

ModuleCacheCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
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 28
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A fire() 0 6 1
1
<?php
2
namespace Caffeinated\Modules\Console\Commands;
3
4
use Illuminate\Console\Command;
5
6
class ModuleCacheCommand extends Command
7
{
8
    /**
9
     * The console command name.
10
     *
11
     * @var string
12
     */
13
	protected $name = 'module:cache';
14
15
    /**
16
     * The console command description.
17
     *
18
     * @var string
19
     */
20
	protected $description = 'Reset cached instance of enabled and disabled modules';
21
22
	/**
23
	 * Execute the console command.
24
	 *
25
	 * @return mixed
26
	 */
27
	public function fire()
28
	{
29
		$this->laravel['modules']->cache();
30
31
		$this->info("Modules were successfully cached.");
32
	}
33
}
34