Skip to content

Commit

Permalink
refactor: remove unnecesary includes
Browse files Browse the repository at this point in the history
  • Loading branch information
dvikan committed May 12, 2022
1 parent 829fc6c commit fd449be
Show file tree
Hide file tree
Showing 18 changed files with 1 addition and 43 deletions.
1 change: 0 additions & 1 deletion bridges/BooruprojectBridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once('DanbooruBridge.php');

class BooruprojectBridge extends DanbooruBridge {

Expand Down
1 change: 0 additions & 1 deletion bridges/GiteaBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Gitea is a fork of Gogs which may diverge in the future.
* https://docs.gitea.io/en-us/
*/
require_once 'GogsBridge.php';

class GiteaBridge extends GogsBridge {

Expand Down
2 changes: 1 addition & 1 deletion bridges/GithubPullRequestBridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
require_once('GithubIssueBridge.php');

class GitHubPullRequestBridge extends GithubIssueBridge {
const MAINTAINER = 'Yaman Qalieh';
const NAME = 'GitHub Pull Request';
Expand Down
1 change: 0 additions & 1 deletion bridges/HotUKDealsBridge.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

require_once(__DIR__ . '/DealabsBridge.php');
class HotUKDealsBridge extends PepperBridgeAbstract {

const NAME = 'HotUKDeals bridge';
Expand Down
1 change: 0 additions & 1 deletion bridges/KonachanBridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once('MoebooruBridge.php');

class KonachanBridge extends MoebooruBridge {

Expand Down
1 change: 0 additions & 1 deletion bridges/LolibooruBridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once('MoebooruBridge.php');

class LolibooruBridge extends MoebooruBridge {

Expand Down
1 change: 0 additions & 1 deletion bridges/MilbooruBridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once('Shimmie2Bridge.php');

class MilbooruBridge extends Shimmie2Bridge {

Expand Down
1 change: 0 additions & 1 deletion bridges/MspabooruBridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once('GelbooruBridge.php');

class MspabooruBridge extends GelbooruBridge {

Expand Down
1 change: 0 additions & 1 deletion bridges/MydealsBridge.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

require_once(__DIR__ . '/DealabsBridge.php');
class MydealsBridge extends PepperBridgeAbstract {

const NAME = 'Mydeals bridge';
Expand Down
1 change: 0 additions & 1 deletion bridges/Rule34Bridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once('GelbooruBridge.php');

class Rule34Bridge extends GelbooruBridge {

Expand Down
1 change: 0 additions & 1 deletion bridges/Rule34pahealBridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once('Shimmie2Bridge.php');

class Rule34pahealBridge extends Shimmie2Bridge {

Expand Down
1 change: 0 additions & 1 deletion bridges/SafebooruBridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once('GelbooruBridge.php');

class SafebooruBridge extends GelbooruBridge {

Expand Down
1 change: 0 additions & 1 deletion bridges/Shimmie2Bridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once('DanbooruBridge.php');

class Shimmie2Bridge extends DanbooruBridge {

Expand Down
1 change: 0 additions & 1 deletion bridges/TbibBridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once('GelbooruBridge.php');

class TbibBridge extends GelbooruBridge {

Expand Down
1 change: 0 additions & 1 deletion bridges/XbooruBridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once('GelbooruBridge.php');

class XbooruBridge extends GelbooruBridge {

Expand Down
1 change: 0 additions & 1 deletion bridges/YandereBridge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once('MoebooruBridge.php');

class YandereBridge extends MoebooruBridge {

Expand Down
26 changes: 0 additions & 26 deletions lib/rssbridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,32 +50,6 @@
/** URL to the RSS-Bridge repository */
define('REPOSITORY', 'https://github.com/RSS-Bridge/rss-bridge/');

// Interfaces
require_once PATH_LIB . 'ActionInterface.php';
require_once PATH_LIB . 'BridgeInterface.php';
require_once PATH_LIB . 'CacheInterface.php';
require_once PATH_LIB . 'FormatInterface.php';

// Classes
require_once PATH_LIB . 'FactoryAbstract.php';
require_once PATH_LIB . 'FeedItem.php';
require_once PATH_LIB . 'Debug.php';
require_once PATH_LIB . 'Exceptions.php';
require_once PATH_LIB . 'FormatFactory.php';
require_once PATH_LIB . 'FormatAbstract.php';
require_once PATH_LIB . 'BridgeFactory.php';
require_once PATH_LIB . 'BridgeAbstract.php';
require_once PATH_LIB . 'FeedExpander.php';
require_once PATH_LIB . 'CacheFactory.php';
require_once PATH_LIB . 'Authentication.php';
require_once PATH_LIB . 'Configuration.php';
require_once PATH_LIB . 'BridgeCard.php';
require_once PATH_LIB . 'BridgeList.php';
require_once PATH_LIB . 'ParameterValidator.php';
require_once PATH_LIB . 'ActionFactory.php';
require_once PATH_LIB . 'ActionAbstract.php';
require_once PATH_LIB . 'XPathAbstract.php';

// Functions
require_once PATH_LIB . 'html.php';
require_once PATH_LIB . 'error.php';
Expand Down
1 change: 0 additions & 1 deletion tests/JsonFormatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* JsonFormat - JSON Feed Version 1
* https://jsonfeed.org/version/1
*/
require_once __DIR__ . '/../lib/rssbridge.php';

use PHPUnit\Framework\TestCase;

Expand Down

0 comments on commit fd449be

Please sign in to comment.