Passed
Pull Request — master (#12)
by Paweł
03:51
created

deploy.php (6 issues)

Labels
Severity
1
<?php
2
3
namespace Deployer;
4
5
require 'recipe/symfony4.php';
6
7
set('application', 'owncourses');
1 ignored issue
show
The function set was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

7
/** @scrutinizer ignore-call */ 
8
set('application', 'owncourses');
Loading history...
8
set('default_stage', 'demo');
9
10
set('env', function () {
11
    return [
12
        'APP_ENV' => has('symfony_env') ? get('symfony_env') : 'prod',
2 ignored issues
show
The function get was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

12
        'APP_ENV' => has('symfony_env') ? /** @scrutinizer ignore-call */ get('symfony_env') : 'prod',
Loading history...
The function has was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

12
        'APP_ENV' => /** @scrutinizer ignore-call */ has('symfony_env') ? get('symfony_env') : 'prod',
Loading history...
13
    ];
14
});
15
16
set('repository', '[email protected]:owncourses/courses-server.git');
17
set('git_tty', true);
18
set('shared_files', [
19
    '.env.local',
20
    '.env.local.php',
21
    'config/jwt/private.pem',
22
    'config/jwt/public.pem',
23
]); // reset sharing .env
24
25
inventory('hosts.yml');
1 ignored issue
show
The function inventory was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

25
/** @scrutinizer ignore-call */ 
26
inventory('hosts.yml');
Loading history...
26
27
after('deploy:failed', 'deploy:unlock');
1 ignored issue
show
The function after was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

27
/** @scrutinizer ignore-call */ 
28
after('deploy:failed', 'deploy:unlock');
Loading history...
28
before('deploy:symlink', 'database:migrate');
1 ignored issue
show
The function before was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

28
/** @scrutinizer ignore-call */ 
29
before('deploy:symlink', 'database:migrate');
Loading history...
29