]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Typing to Profile
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 6 Jan 2016 00:25:00 +0000 (01:25 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 6 Jan 2016 00:25:00 +0000 (01:25 +0100)
lib/subscriptionlist.php

index 29c12744076b301527ed8837ced2226ef2e6268e..aad1f1230b1bdf296bca339821c8233dec45d746 100644 (file)
@@ -27,9 +27,7 @@
  * @link      http://status.net/
  */
 
-if (!defined('STATUSNET') && !defined('LACONICA')) {
-    exit(1);
-}
+if (!defined('GNUSOCIAL')) { exit(1); }
 
 /**
  * Widget to show a list of subscriptions
@@ -46,14 +44,14 @@ class SubscriptionList extends ProfileList
     /** Owner of this list */
     var $owner = null;
 
-    function __construct($profile, $owner=null, $action=null)
+    public function __construct(Profile $profile, $owner=null, $action=null)
     {
         parent::__construct($profile, $action);
 
         $this->owner = $owner;
     }
 
-    function newListItem($profile)
+    public function newListItem(Profile $profile)
     {
         return new SubscriptionListItem($profile, $this->owner, $this->action);
     }