From 0bdbb32f3bbca58d94f3bb928b4e393c0eff781c Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 9 Oct 2015 15:45:05 +0200 Subject: [PATCH] Consistent camelcasing --- classes/Notice.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/classes/Notice.php b/classes/Notice.php index 1d9823c79c..b5dd1fd79b 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -280,18 +280,12 @@ class Notice extends Managed_DataObject } } - public function get_object_type($canonical=false) { + public function getObjectType($canonical=false) { return $canonical ? ActivityObject::canonicalType($this->object_type) : $this->object_type; } - // activity plugins tend to use this function instead, but it's the same - public function getObjectType() - { - return $this->get_object_type(); - } - public static function getByUri($uri) { $notice = new Notice(); @@ -2405,7 +2399,7 @@ class Notice extends Managed_DataObject $this->uri = sprintf('%s%s=%d:%s=%s', TagURI::mint(), 'noticeId', $this->id, - 'objectType', $this->get_object_type(true)); + 'objectType', $this->getObjectType(true)); $changed = true; }