]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/Shorturl_api.php
Add finishremotesubscribe to the unrouted actions list.
[quix0rs-gnu-social.git] / lib / Shorturl_api.php
index 7beae0ec6446577ba9dc10b04afefaa6b6264e6b..fe106cb8376a06b69ac5ba142329917b808a4427 100644 (file)
 
 if (!defined('LACONICA')) { exit(1); }
 
-class ShortUrlApi {
+class ShortUrlApi
+{
     protected $service_url;
 
-    function __construct($service_url) {
+    function __construct($service_url)
+    {
         $this->service_url = $service_url;
     }
 
-    function shorten($url) {
+    function shorten($url)
+    {
         if ($this->is_long($url)) return $this->shorten_imp($url);
         return $url;
     }
@@ -67,8 +70,10 @@ class ShortUrlApi {
     }
 }
 
-class LilUrl extends ShortUrlApi {
-    function __construct() {
+class LilUrl extends ShortUrlApi
+{
+    function __construct()
+    {
         parent::__construct('http://ur1.ca/');
     }
 
@@ -85,8 +90,10 @@ class LilUrl extends ShortUrlApi {
 }
 
 
-class PtitUrl extends ShortUrlApi {
-    function __construct() {
+class PtitUrl extends ShortUrlApi
+{
+    function __construct()
+    {
         parent::__construct('http://ptiturl.com/?creer=oui&action=Reduire&url=');
     }
 
@@ -102,8 +109,10 @@ class PtitUrl extends ShortUrlApi {
     }
 }
 
-class TightUrl extends ShortUrlApi {
-    function __construct() {
+class TightUrl extends ShortUrlApi
+{
+    function __construct()
+    {
         parent::__construct('http://2tu.us/?save=y&url=');
     }