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 (#1301)
by Frank
02:17
created

TYPO3Template::getTemplateContent()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 30
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 30
rs 8.8571
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 common (base) deployer configuration
12
 *
13
 * @author Vitaliy Zhuk <[email protected]>
14
 * @author Anton Medvedev <[email protected]>
15
 * @codeCoverageIgnore
16
 */
17
class TYPO3Template extends Template
18
{
19
    /**
20
     * Get content of template.
21
     *
22
     * @param array $params
23
     *
24
     * @return string
25
     */
26
    protected function getTemplateContent($params)
27
    {
28
        return <<<PHP
29
<?php
30
namespace Deployer;
31
32
require 'recipe/typo3.php';
33
34
// Introduction
35
// This recipe is based on the "common" recipe, but has pre configured the 
36
// TYPO3 relevant settings for shared files and folders
37
// The TYPO3 recipe provides a special setting, the typo3_webroot which
38
// defines the DocumentRoot folder, default is "Web".
39
// Define all other settings like within a "common" recipe.
40
41
// Configuration
42
// #############
43
// Override DocumentRoot here
44
// set('typo3_webroot', 'Web');
45
46
// Hosts
47
// host('project.com')
48
//     ->stage('production')
49
//     ->set('deploy_path', '/var/www/project.com');
50
51
// host('beta.project.com')
52
//     ->stage('beta')
53
//     ->set('deploy_path', '/var/www/project.com');
54
PHP;
55
    }
56
}
57