mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Unnecessary if statement. The else clause covers all necessary scenarios
This commit is contained in:
parent
95b85118c7
commit
e6c49766c7
1 changed files with 1 additions and 3 deletions
|
@ -44,9 +44,7 @@
|
|||
function config() {
|
||||
$args = func_get_args();
|
||||
foreach ($args as $arg) {
|
||||
if ($arg === 'database' && file_exists(APP . 'Config' . DS . 'database.php')) {
|
||||
include_once(APP . 'Config' . DS . $arg . '.php');
|
||||
} elseif (file_exists(APP . 'Config' . DS . $arg . '.php')) {
|
||||
if (file_exists(APP . 'Config' . DS . $arg . '.php')) {
|
||||
include_once(APP . 'Config' . DS . $arg . '.php');
|
||||
|
||||
if (count($args) == 1) {
|
||||
|
|
Loading…
Reference in a new issue