* remove unnecessary parentheses in include/require

This commit is contained in:
slawkens
2018-05-29 21:00:56 +02:00
parent e1ddf58119
commit 42d23e9b37
42 changed files with 554 additions and 554 deletions

View File

@@ -10,8 +10,8 @@
defined('MYAAC') or die('Direct access not allowed!');
$title = 'Load items.xml';
require(LIBS . 'items.php');
require(LIBS . 'weapons.php');
require LIBS . 'items.php';
require LIBS . 'weapons.php';
echo $twig->render('admin.items.html.twig');

View File

@@ -49,7 +49,7 @@ if(isset($_REQUEST['template'])) {
$file = TEMPLATES . $template . '/config.php';
if(file_exists($file)) {
require_once($file);
require_once $file;
}
else {
echo 'Cannot find template config.php file.';

View File

@@ -10,7 +10,7 @@
defined('MYAAC') or die('Direct access not allowed!');
$title = 'Plugin manager';
require(LIBS . 'plugins.php');
require LIBS . 'plugins.php';
echo $twig->render('admin.plugins.form.html.twig');

View File

@@ -25,5 +25,5 @@ if(preg_match("/[^A-z0-9_\-]/", $tool))
$file = BASE . 'admin/pages/tools/' . $tool . '.php';
if(!@file_exists($file))
require($file);
require $file;
?>

View File

@@ -18,7 +18,7 @@ You can enable it by editing this configurable in <b>config.local.php</b> file:<
return;
endif;
require(SYSTEM . 'libs/visitors.php');
require SYSTEM . 'libs/visitors.php';
$visitors = new Visitors($config['visitors_counter_ttl']);
function compare($a, $b) {