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::fire()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
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