From f564925ba081d95bc43d358f8e13e06d31d944e3 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 6 Nov 2018 18:15:08 +0100 Subject: [PATCH] [RssBridge] Use require_once instead of require "The require_once statement is identical to require except PHP will check if the file has already been included, and if so, not include (require) it again." -- http://php.net/manual/en/function.require-once.php --- lib/RssBridge.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/RssBridge.php b/lib/RssBridge.php index dea2ec4c..967e5c5e 100644 --- a/lib/RssBridge.php +++ b/lib/RssBridge.php @@ -7,22 +7,22 @@ Licence: Public domain. define('PATH_VENDOR', __DIR__ . '/../vendor'); -require __DIR__ . '/Exceptions.php'; -require __DIR__ . '/Format.php'; -require __DIR__ . '/FormatAbstract.php'; -require __DIR__ . '/Bridge.php'; -require __DIR__ . '/BridgeAbstract.php'; -require __DIR__ . '/FeedExpander.php'; -require __DIR__ . '/Cache.php'; -require __DIR__ . '/Authentication.php'; -require __DIR__ . '/Configuration.php'; -require __DIR__ . '/BridgeCard.php'; -require __DIR__ . '/BridgeList.php'; -require __DIR__ . '/ParameterValidator.php'; +require_once __DIR__ . '/Exceptions.php'; +require_once __DIR__ . '/Format.php'; +require_once __DIR__ . '/FormatAbstract.php'; +require_once __DIR__ . '/Bridge.php'; +require_once __DIR__ . '/BridgeAbstract.php'; +require_once __DIR__ . '/FeedExpander.php'; +require_once __DIR__ . '/Cache.php'; +require_once __DIR__ . '/Authentication.php'; +require_once __DIR__ . '/Configuration.php'; +require_once __DIR__ . '/BridgeCard.php'; +require_once __DIR__ . '/BridgeList.php'; +require_once __DIR__ . '/ParameterValidator.php'; -require __DIR__ . '/html.php'; -require __DIR__ . '/error.php'; -require __DIR__ . '/contents.php'; +require_once __DIR__ . '/html.php'; +require_once __DIR__ . '/error.php'; +require_once __DIR__ . '/contents.php'; require_once PATH_VENDOR . '/simplehtmldom/simple_html_dom.php'; require_once PATH_VENDOR . '/php-urljoin/src/urljoin.php';