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

SymfonyTemplate   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 21
ccs 0
cts 11
cp 0
rs 10
c 0
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 Symfony deployer configuration.
12
 *
13
 * @author Anton Medvedev <[email protected]>
14
 */
15
class SymfonyTemplate extends FrameworkTemplate
16
{
17
    protected function getRecipe()
18
    {
19
        return 'symfony';
20
    }
21
22
    /**
23
     * {@inheritDoc}
24
     */
25
    protected function getExtraContent()
26
    {
27
        return <<<PHP
28
29
// Migrate database before symlink new release.
30
31
before('deploy:symlink', 'database:migrate');
32
33
PHP;
34
    }
35
}
36