mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-02-04 03:18:40 +00:00
phpcs fixes
This commit is contained in:
parent
495b262a1c
commit
80c43c4f30
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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' => []];
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user