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 ( b5125b...c08d10 )
by Shea
06:09
created

ModuleOptimizeCommand   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 ModuleOptimizeCommand extends Command
7
{
8
    /**
9
     * The console command name.
10
     *
11
     * @var string
12
     */
13
	protected $name = 'module:optimize';
14
15
    /**
16
     * The console command description.
17
     *
18
     * @var string
19
     */
20
	protected $description = 'Optimize the module cache for better performance';
21
22
	/**
23
	 * Execute the console command.
24
	 *
25
	 * @return mixed
26
	 */
27
	public function fire()
28
	{
29
        $this->info("Generating optimized module cache");
30
31
		$this->laravel['modules']->optimize();
32
	}
33
}
34