diff options
author | 2022-07-01 15:10:30 +0200 | |
---|---|---|
committer | 2022-07-01 15:10:30 +0200 | |
commit | 4f75591060d95208a301bc6bf460d875631b29cc (patch) | |
tree | 4e37d86840e8d990a563ba75d3de6f84a53cc2de /lib/rssbridge.php | |
parent | 66568e3a39c61546c09a47a5688914a0bdf3c60c (diff) | |
download | rss-bridge-4f75591060d95208a301bc6bf460d875631b29cc.tar.gz rss-bridge-4f75591060d95208a301bc6bf460d875631b29cc.tar.zst rss-bridge-4f75591060d95208a301bc6bf460d875631b29cc.zip |
Reformat codebase v4 (#2872)
Reformat code base to PSR12
Co-authored-by: rssbridge <noreply@github.com>
Diffstat (limited to 'lib/rssbridge.php')
-rw-r--r-- | lib/rssbridge.php | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/lib/rssbridge.php b/lib/rssbridge.php index cd156fe8..560c0fe4 100644 --- a/lib/rssbridge.php +++ b/lib/rssbridge.php @@ -1,4 +1,5 @@ <?php + /** * This file is part of RSS-Bridge, a PHP project capable of generating RSS and * Atom feeds for websites that don't have one. @@ -6,9 +7,9 @@ * For the full license information, please view the UNLICENSE file distributed * with this source code. * - * @package Core - * @license http://unlicense.org/ UNLICENSE - * @link https://github.com/rss-bridge/rss-bridge + * @package Core + * @license http://unlicense.org/ UNLICENSE + * @link https://github.com/rss-bridge/rss-bridge */ /** Path to the root folder of RSS-Bridge (where index.php is located) */ @@ -64,19 +65,19 @@ require_once PATH_LIB_VENDOR . 'php-urljoin/src/urljoin.php'; require_once PATH_LIB_VENDOR . 'simplehtmldom/simple_html_dom.php'; spl_autoload_register(function ($className) { - $folders = [ - __DIR__ . '/../actions/', - __DIR__ . '/../bridges/', - __DIR__ . '/../caches/', - __DIR__ . '/../formats/', - __DIR__ . '/../lib/', - ]; - foreach ($folders as $folder) { - $file = $folder . $className . '.php'; - if (is_file($file)) { - require $file; - } - } + $folders = [ + __DIR__ . '/../actions/', + __DIR__ . '/../bridges/', + __DIR__ . '/../caches/', + __DIR__ . '/../formats/', + __DIR__ . '/../lib/', + ]; + foreach ($folders as $folder) { + $file = $folder . $className . '.php'; + if (is_file($file)) { + require $file; + } + } }); Configuration::verifyInstallation(); |