aboutsummaryrefslogtreecommitdiff
path: root/docs/05_Bridge_API
diff options
context:
space:
mode:
authorGravatar Dag <me@dvikan.no> 2024-08-30 04:37:40 +0200
committerGravatar GitHub <noreply@github.com> 2024-08-30 04:37:40 +0200
commit9cabf60144c843e4de21ec348cb88d8304604f13 (patch)
tree90cbfe0e25253b16e9be40f24c40ca9005b1ff92 /docs/05_Bridge_API
parent6a24e53d6ca4fbfb3115a8cb30a51283684f0f20 (diff)
downloadrss-bridge-9cabf60144c843e4de21ec348cb88d8304604f13.tar.gz
rss-bridge-9cabf60144c843e4de21ec348cb88d8304604f13.tar.zst
rss-bridge-9cabf60144c843e4de21ec348cb88d8304604f13.zip
docs
* refactor * docs
Diffstat (limited to 'docs/05_Bridge_API')
-rw-r--r--docs/05_Bridge_API/01_How_to_create_a_new_bridge.md3
-rw-r--r--docs/05_Bridge_API/02_BridgeAbstract.md7
2 files changed, 6 insertions, 4 deletions
diff --git a/docs/05_Bridge_API/01_How_to_create_a_new_bridge.md b/docs/05_Bridge_API/01_How_to_create_a_new_bridge.md
index 391d179f..02287962 100644
--- a/docs/05_Bridge_API/01_How_to_create_a_new_bridge.md
+++ b/docs/05_Bridge_API/01_How_to_create_a_new_bridge.md
@@ -27,4 +27,5 @@ The file must start with the PHP tags and end with an empty line. The closing ta
// This line is empty (just imagine it!)
```
-The next step is to extend one of the base classes. Refer to one of an base classes listed on the [Bridge API](../05_Bridge_API/index.md) page. \ No newline at end of file
+The next step is to extend one of the base classes.
+Refer to one of an base classes listed on the [Bridge API](../05_Bridge_API/index.md) page.
diff --git a/docs/05_Bridge_API/02_BridgeAbstract.md b/docs/05_Bridge_API/02_BridgeAbstract.md
index b6813a16..9cb16050 100644
--- a/docs/05_Bridge_API/02_BridgeAbstract.md
+++ b/docs/05_Bridge_API/02_BridgeAbstract.md
@@ -50,10 +50,10 @@ For example: `MyBridge.php` => `MyBridge`
```PHP
<?PHP
-class MyBridge extends BridgeAbstract {
+class MyBridge extends BridgeAbstract
+{
}
-// This line is empty (just imagine it!)
```
</div></details>
@@ -76,7 +76,8 @@ const CACHE_TIMEOUT // (optional) Defines the maximum duration for the cache in
```PHP
<?php
-class MyBridge extends BridgeAbstract {
+class MyBridge extends BridgeAbstract
+{
const NAME = 'My Bridge';
const URI = 'https://rss-bridge.github.io/rss-bridge/Bridge_API/BridgeAbstract.html';
const DESCRIPTION = 'Returns "Hello World!"';