Skip to content

Commit

Permalink
Master language constructs shall be used instead of aliases.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Jun 18, 2021
1 parent 58dbb2b commit 6524ccc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spark
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ define('SPARKED', true);

// Refuse to run when called from php-cgi
if (strpos(PHP_SAPI, 'cgi') === 0) {
die("The cli tool is not supported when running php-cgi. It needs php-cli to function!\n\n");
exit("The cli tool is not supported when running php-cgi. It needs php-cli to function!\n\n");
}

// Path to the front controller
Expand Down
9 changes: 4 additions & 5 deletions system/HTTP/IncomingRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,11 @@ public function setPath(string $path, App $config = null)
if ($config->forceGlobalSecureRequests && $this->uri->getScheme() === 'http') {
$this->uri->setScheme('https');
}
} elseif (! is_cli()) {
// @codeCoverageIgnoreStart
exit('You have an empty or invalid base URL. The baseURL value must be set in Config\App.php, or through the .env file.');
// @codeCoverageIgnoreEnd
}
// @codeCoverageIgnoreStart
elseif (! is_cli()) {
die('You have an empty or invalid base URL. The baseURL value must be set in Config\App.php, or through the .env file.');
}
// @codeCoverageIgnoreEnd

return $this;
}
Expand Down
1 change: 1 addition & 0 deletions utils/PhpCsFixer/CodeIgniter4.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public function __construct()
'native_function_casing' => true,
'native_function_type_declaration_casing' => true,
'no_alias_functions' => ['sets' => ['@all']],
'no_alias_language_construct_call' => true,
'no_short_bool_cast' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_unset_cast' => true,
Expand Down

0 comments on commit 6524ccc

Please sign in to comment.