Skip to content

Commit

Permalink
Code style and comment fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Weimann <[email protected]>
  • Loading branch information
weeman1337 committed Feb 10, 2019
1 parent 6c52821 commit 587a140
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion lib/private/Settings/Personal/PersonalInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ class PersonalInfo implements ISettings {
* @param IUserManager $userManager
* @param IGroupManager $groupManager
* @param AccountManager $accountManager
* @param IAppManager $appManager
* @param IFactory $l10nFactory
* @param IL10N $l
* @param EncryptionManager $encryptionManager
*/
public function __construct(
IConfig $config,
Expand Down Expand Up @@ -151,7 +153,7 @@ public function getForm() {
*
* @return array
*/
private function getWhereIsYourDataParams() {
private function getWhereIsYourDataParams(): array {

$adminContactConfigId = $this->config->getSystemValue(ServerInfo::SETTING_PROVIDER_ADMIN_CONTACT);
$adminContact = $this->userManager->get($adminContactConfigId);
Expand Down
8 changes: 4 additions & 4 deletions lib/private/Settings/Theming/ServerInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __construct(IConfig $config, IGroupManager $groupManager) {
/**
* @return TemplateResponse
*/
public function getForm() {
public function getForm(): TemplateResponse {
$parameters = [
'location' => $this->config->getSystemValue(self::SETTING_LOCATION),
'provider' => $this->config->getSystemValue(self::SETTING_PROVIDER),
Expand All @@ -80,7 +80,7 @@ public function getForm() {
*
* @return array[] An array or arrays with the keys 'id' and 'displayName'
*/
private function getAdminListValues() {
private function getAdminListValues(): array {
$adminGroup = $this->groupManager->get('admin');
$users = $adminGroup->getUsers();

Expand All @@ -103,7 +103,7 @@ private function getAdminListValues() {
*
* @return string
*/
public function getSection() {
public function getSection(): string {
return 'theming';
}

Expand All @@ -114,7 +114,7 @@ public function getSection() {
* the admin section. The forms are arranged in ascending order of the
* priority values. It is required to return a value between 0 and 100.
*/
public function getPriority() {
public function getPriority(): int {
return 10;
}

Expand Down
2 changes: 1 addition & 1 deletion settings/Controller/ServerInfoSettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function storeServerInfo(
string $providerWebsite,
string $providerPrivacyLink,
string $adminContact
) {
): void {
$configs = [
ServerInfo::SETTING_LOCATION => $location,
ServerInfo::SETTING_PROVIDER => $provider,
Expand Down

0 comments on commit 587a140

Please sign in to comment.