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 ( de963c...2c0924 )
by Anton
02:43
created

LaravelTemplate   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 19
rs 10
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRecipe() 0 4 1
A getExtraContent() 0 11 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
}
34