Skip to content

Commit

Permalink
Trimmed back x_once parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed May 16, 2024
1 parent 4673659 commit 5323dfe
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions upload/system/startup.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ function modification($filename) {

// Autoloader
if (defined('DIR_STORAGE') && is_file(DIR_STORAGE . 'vendor/autoload.php')) {
require_once (DIR_STORAGE . 'vendor/autoload.php');
require_once(DIR_STORAGE . 'vendor/autoload.php');
}

// Library
function library($class) {
$file = DIR_SYSTEM . 'library/' . str_replace('\\', '/', strtolower($class)) . '.php';

if (is_file($file)) {
include_once (modification($file));
include_once(modification($file));

return true;
} else {
Expand All @@ -93,23 +93,23 @@ function library($class) {
spl_autoload_extensions('.php');

// Engine
require_once (modification(DIR_SYSTEM . 'engine/action.php'));
require_once (modification(DIR_SYSTEM . 'engine/controller.php'));
require_once (modification(DIR_SYSTEM . 'engine/event.php'));
require_once (modification(DIR_SYSTEM . 'engine/router.php'));
require_once (modification(DIR_SYSTEM . 'engine/loader.php'));
require_once (modification(DIR_SYSTEM . 'engine/model.php'));
require_once (modification(DIR_SYSTEM . 'engine/registry.php'));
require_once (modification(DIR_SYSTEM . 'engine/proxy.php'));
require_once(modification(DIR_SYSTEM . 'engine/action.php'));
require_once(modification(DIR_SYSTEM . 'engine/controller.php'));
require_once(modification(DIR_SYSTEM . 'engine/event.php'));
require_once(modification(DIR_SYSTEM . 'engine/router.php'));
require_once(modification(DIR_SYSTEM . 'engine/loader.php'));
require_once(modification(DIR_SYSTEM . 'engine/model.php'));
require_once(modification(DIR_SYSTEM . 'engine/registry.php'));
require_once(modification(DIR_SYSTEM . 'engine/proxy.php'));

// OpenCart Autoloader
require_once (DIR_SYSTEM . 'engine/autoloader.php');
require_once(DIR_SYSTEM . 'engine/autoloader.php');

// Helper
require_once (DIR_SYSTEM . 'helper/general.php');
require_once (DIR_SYSTEM . 'helper/utf8.php');
require_once(DIR_SYSTEM . 'helper/general.php');
require_once(DIR_SYSTEM . 'helper/utf8.php');

// Start
function start($application_config): void {
require_once (DIR_SYSTEM . 'framework.php');
require_once(DIR_SYSTEM . 'framework.php');
}

0 comments on commit 5323dfe

Please sign in to comment.