phpcs fixes

This commit is contained in:
Dennis Eichhorn 2019-10-06 17:50:12 +02:00
parent 495b262a1c
commit 80c43c4f30
8 changed files with 26 additions and 14 deletions

View File

@ -36,8 +36,8 @@ jsOMS.Modules.Navigation = class {
* @since 1.0.0
*/
bind (id) {
const e = typeof id === 'undefined' ? document.getElementsByClassName('nav') : [document.getElementById(id)],
length = e.length;
const e = typeof id === 'undefined' ? document.getElementsByClassName('nav') : [document.getElementById(id)];
const length = e.length;
for (let i = 0; i < length; ++i) {
this.bindElement(e[i]);
@ -60,14 +60,14 @@ jsOMS.Modules.Navigation = class {
return;
}
const extend = e.querySelectorAll('li label'),
self = this;
const extend = e.querySelectorAll('li label');
const self = this;
this.navigation[e.id] = new Navigation(this.rawNavData[e.id]);
// On load
const open = this.navigation[e.id].getOpen();
let ele = null;
let ele = null;
for (let key in open) {
if (open.hasOwnProperty(key) && (ele = document.getElementById(key)) !== null) {
@ -84,7 +84,7 @@ jsOMS.Modules.Navigation = class {
e.nextElementSibling.checked = width < 800;
}
e.scrollTop = this.navigation[e.id].getScrollPosition().y;
e.scrollTop = this.navigation[e.id].getScrollPosition().y;
e.scrollLeft = this.navigation[e.id].getScrollPosition().x;
// Bind minimize/maximize

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php
/**
* Orange Management
*
@ -10,4 +10,6 @@
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
return ['Navigation' => []];

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php
/**
* Orange Management
*
@ -10,6 +10,8 @@
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
/**
* @var \Modules\Navigation\Views\NavigationView $this
*/

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php
/**
* Orange Management
*
@ -10,6 +10,8 @@
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
/**
* @var \Modules\Navigation\Views\NavigationView $this
*/

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php
/**
* Orange Management
*
@ -10,6 +10,8 @@
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
use \Modules\Navigation\Models\LinkType;
use \Modules\Navigation\Models\NavigationType;

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php
/**
* Orange Management
*
@ -10,6 +10,8 @@
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
/**
* @var \Modules\Navigation\Views\NavigationView $this
*/

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php
/**
* Orange Management
*
@ -10,6 +10,8 @@
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
use Modules\Navigation\Models\NavigationType;

View File

@ -91,7 +91,7 @@ class NavigationView extends View
}
/**
* @param array $nav
* @param array $nav Navigation data
*
* @return void
*
@ -113,7 +113,7 @@ class NavigationView extends View
}
/**
* @param int $parent
* @param int $parent Navigation parent element
*
* @return void
*