mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-29 00:10:07 +02:00
Reformat codebase v4 (#2872)
Reformat code base to PSR12 Co-authored-by: rssbridge <noreply@github.com>
This commit is contained in:
parent
66568e3a39
commit
4f75591060
398 changed files with 58607 additions and 56442 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue