From 5b94705cf3918dc7986c6043b1fbe776bf22958f Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Tue, 27 Mar 2018 15:35:06 +0200 Subject: Core: Fix compatibility with nextcloud codestyle (#280) --- lib/Settings/Section.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'lib/Settings/Section.php') diff --git a/lib/Settings/Section.php b/lib/Settings/Section.php index dd0f1ff0c..e1dc90147 100644 --- a/lib/Settings/Section.php +++ b/lib/Settings/Section.php @@ -6,28 +6,34 @@ use OCP\IL10N; use OCP\IURLGenerator; use OCP\Settings\IIconSection; -class Section implements IIconSection { +class Section implements IIconSection +{ private $l; private $url; - public function __construct(IURLGenerator $url, IL10N $l) { + public function __construct(IURLGenerator $url, IL10N $l) + { $this->url = $url; $this->l = $l; } - public function getID() { + public function getID() + { return 'news'; } - public function getName() { + public function getName() + { return $this->l->t('News'); } - public function getPriority() { + public function getPriority() + { return 10; } - public function getIcon() { + public function getIcon() + { return $this->url->imagePath('news', 'app-dark.svg'); } } \ No newline at end of file -- cgit v1.2.3