Fixing PHPCS errors.
This commit is contained in:
parent
ab4396e00d
commit
86b9c05f98
12 changed files with 13 additions and 26 deletions
|
|
@ -16,17 +16,13 @@ if (empty($timezone)) {
|
|||
date_default_timezone_set('UTC');
|
||||
}
|
||||
|
||||
// If the PHPCI config file is not where we expect it, try looking in
|
||||
// env for an alternative config path.
|
||||
$configFile = dirname(__FILE__) . '/PHPCI/config.yml';
|
||||
|
||||
$configEnv = getenv('phpci_config_file');
|
||||
if (!empty($configEnv)) {
|
||||
|
||||
if (!empty($configEnv) && file_exists($configEnv)) {
|
||||
$configFile = $configEnv;
|
||||
}
|
||||
|
||||
define('PHPCI_CONFIG_FILE', $configFile);
|
||||
|
||||
// If we don't have a config file at all, fail at this point and tell the user to install:
|
||||
if (!file_exists($configFile) && (!defined('PHPCI_IS_CONSOLE') || !PHPCI_IS_CONSOLE)) {
|
||||
$message = 'PHPCI has not yet been installed - Please use the command "./console phpci:install" ';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue