diff options
author | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2018-03-27 15:35:06 +0200 |
---|---|---|
committer | Bernhard Posselt <BernhardPosselt@users.noreply.github.com> | 2018-03-27 15:35:06 +0200 |
commit | 5b94705cf3918dc7986c6043b1fbe776bf22958f (patch) | |
tree | 4e8059818a0a913d24938e35238913a721fa6373 /lib/Settings | |
parent | f3c9d13551cef5968baea99c2f25085baee0ed5f (diff) |
Core: Fix compatibility with nextcloud codestyle (#280)
Diffstat (limited to 'lib/Settings')
-rw-r--r-- | lib/Settings/Admin.php | 15 | ||||
-rw-r--r-- | lib/Settings/Section.php | 18 |
2 files changed, 22 insertions, 11 deletions
diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php index a256999f0..888525dd0 100644 --- a/lib/Settings/Admin.php +++ b/lib/Settings/Admin.php @@ -7,14 +7,17 @@ use OCP\Settings\ISettings; use OCA\News\Config\Config; -class Admin implements ISettings { +class Admin implements ISettings +{ private $config; - public function __construct(Config $config) { + public function __construct(Config $config) + { $this->config = $config; } - public function getForm() { + public function getForm() + { $data = [ 'autoPurgeMinimumInterval' => $this->config->getAutoPurgeMinimumInterval(), @@ -28,11 +31,13 @@ class Admin implements ISettings { return new TemplateResponse('news', 'admin', $data, ''); } - public function getSection() { + public function getSection() + { return 'news'; } - public function getPriority() { + public function getPriority() + { return 40; } } 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 |