PSR 2 compliance and beautify javascript

This commit is contained in:
Simon Vieille 2020-04-09 14:16:40 +02:00
parent 47bcf68218
commit 299abe5e96
Signed by: deblan
GPG key ID: 03383D15A1D31745
4 changed files with 9 additions and 9 deletions

View file

@ -35,7 +35,8 @@ class Admin implements ISettings
/** @var IConfig */
private $config;
public function __construct(IL10N $l, ILogger $logger, IConfig $config) {
public function __construct(IL10N $l, ILogger $logger, IConfig $config)
{
$this->l = $l;
$this->logger = $logger;
$this->config = $config;

View file

@ -79,6 +79,6 @@ class Section implements IIconSection
*/
public function getIcon()
{
return $this->url->imagePath('theming', 'app-dark.svg');
return $this->url->imagePath('theming', 'app-dark.svg');
}
}

View file

@ -23,8 +23,7 @@ Vue.prototype.OC = OC
Vue.prototype.OC = OCP
const View = Vue.extend(SideMenu)
const sideMenu = new View({
})
const sideMenu = new View({})
const mountSideMenuComponent = () => {
const sideMenuContainer = document.querySelector('#side-menu')

View file

@ -42,7 +42,7 @@ const saveSettings = (key) => {
t('side_menu', (key + 1) + '/' + size)
)
if (key < size -1) {
if (key < size - 1) {
saveSettings(++key)
} else {
OC.msg.finishedSuccess(selector, t('side_menu', 'Saved'))
@ -55,10 +55,10 @@ const saveSettings = (key) => {
}
$(document).ready(() => {
$('#side-menu-save').on('click', (event) => {
event.preventDefault()
OC.msg.startSaving(selector)
$('#side-menu-save').on('click', (event) => {
event.preventDefault()
OC.msg.startSaving(selector)
saveSettings(0)
});
});
});