diff options
author | Sean Molenaar <sean@m2mobi.com> | 2018-11-29 20:59:46 +0100 |
---|---|---|
committer | Sean Molenaar <sean@m2mobi.com> | 2018-12-14 07:54:43 +0100 |
commit | becce6b7520912257c3d72697a3aefec9923a467 (patch) | |
tree | a2e0da34df11ade7c630e9b681fac6d3b2383918 /lib/Settings | |
parent | 0f2645145ac31ad77788954c513f391bc4fbb295 (diff) |
Define an official codestyle and adhere to it.
Diffstat (limited to 'lib/Settings')
-rw-r--r-- | lib/Settings/Admin.php | 8 | ||||
-rw-r--r-- | lib/Settings/Section.php | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php index 888525dd0..737f44cc1 100644 --- a/lib/Settings/Admin.php +++ b/lib/Settings/Admin.php @@ -11,12 +11,12 @@ 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' => @@ -31,12 +31,12 @@ 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 e1dc90147..245dec0e7 100644 --- a/lib/Settings/Section.php +++ b/lib/Settings/Section.php @@ -11,29 +11,29 @@ 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 +} |