git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 5f867f98 authored by mmn's avatar mmn

Typing and static declaration in PoCo class

parent 64dbd935
......@@ -505,7 +505,7 @@ class ActivityObject
return $object;
}
static function fromGroup($group)
static function fromGroup(User_group $group)
{
$object = new ActivityObject();
......
......@@ -137,12 +137,8 @@ class PoCo
return null;
}
function fromProfile($profile)
static function fromProfile(Profile $profile)
{
if (empty($profile)) {
return null;
}
$poco = new PoCo();
$poco->preferredUsername = $profile->nickname;
......@@ -168,12 +164,8 @@ class PoCo
return $poco;
}
function fromGroup($group)
static function fromGroup(User_group $group)
{
if (empty($group)) {
return null;
}
$poco = new PoCo();
$poco->preferredUsername = $group->nickname;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment