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.
Passed
Pull Request — master (#1061)
by Maxim
04:23 queued 01:35
created

LaravelTemplate   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 18
ccs 0
cts 11
cp 0
rs 10
c 1
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRecipe() 0 4 1
A getExtraContent() 0 10 1
1
<?php
2
/* (c) Anton Medvedev <[email protected]>
3
 *
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 */
7
8
namespace Deployer\Initializer\Template;
9
10
/**
11
 * Generate a Laravel deployer configuration.
12
 *
13
 * @author Anton Medvedev <[email protected]>
14
 */
15
class LaravelTemplate extends FrameworkTemplate
16
{
17
    protected function getRecipe()
18
    {
19
        return 'laravel';
20
    }
21
22
    protected function getExtraContent()
23
    {
24
        return <<<PHP
25
26
// Migrate database before symlink new release.
27
28
before('deploy:symlink', 'artisan:migrate');
29
30
PHP;
31
    }
32
}
33