Skip to content

Commit

Permalink
Cleaned up CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Stump committed Apr 25, 2009
1 parent b09fa1f commit 38a09ff
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions Services/ShortURL.php
Expand Up @@ -11,14 +11,14 @@
* a copy of the New BSD License and are unable to obtain it through the web,
* please send a note to license@php.net so we can mail you a copy immediately.
*
* @category Services
* @package Services_ShortURL
* @author Joe Stump <joe@joestump.net>
* @copyright Joe Stump <joe@joestump.net>
* @license http://www.opensource.org/licenses/bsd-license.php
* @version CVS: $Id:$
* @link http://pear.php.net/package/Services_ShortURL
* @link http://github.com/joestump/services_shorturl
* @category Services
* @package Services_ShortURL
* @author Joe Stump <joe@joestump.net>
* @copyright 2009 Joe Stump <joe@joestump.net>
* @license http://tinyurl.com/new-bsd New BSD License
* @version CVS: $Id:$
* @link http://pear.php.net/package/Services_ShortURL
* @link http://github.com/joestump/services_shorturl
*/

require_once 'Net/URL2.php';
Expand All @@ -27,10 +27,12 @@
/**
* An interface for managing short URLs
*
* @category Services
* @package Services_ShortURL
* @author Joe Stump <joe@joestump.net>
* @link http://api.tr.im/website/api
* @category Services
* @package Services_ShortURL
* @author Joe Stump <joe@joestump.net>
* @license http://tinyurl.com/new-bsd New BSD License
* @link http://pear.php.net/package/Services_ShortURL
* @link http://github.com/joestump/services_shorturl
*/
abstract class Services_ShortURL
{
Expand All @@ -45,14 +47,14 @@ abstract class Services_ShortURL
* @see Services_ShortURL::setServiceOptions()
* @var array $options Service options
*/
static private $options = array();
static protected $options = array();

/**
* List of supported services
*
* @var array $services Map of services to drivers
*/
static private $services = array(
static protected $services = array(
'bit.ly' => 'bitly',
'is.gd' => 'isgd',
'tinyurl.com' => 'TinyURL',
Expand Down Expand Up @@ -150,7 +152,7 @@ static public function extract($string)

$ret = array();
foreach ($m['url'] as $url) {
$api = self::detect($url);
$api = self::detect($url);
$ret[$url] = $api->expand($url);
}

Expand Down

0 comments on commit 38a09ff

Please sign in to comment.