From 947e918f05d70d5dce4efa4ef403e593581c3fa9 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 28 Feb 2021 12:26:24 +0100 Subject: Travis: Enforce phpcs line length + whitespace (#3488) * Update Travis line length * Also check whitespace in CSS files * Fix line length ext.php * More syntax, string templates * Fix exclude-pattern * Test JS files as well --- p/scripts/install.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'p/scripts/install.js') diff --git a/p/scripts/install.js b/p/scripts/install.js index ca1a2d7af..448f70b56 100644 --- a/p/scripts/install.js +++ b/p/scripts/install.js @@ -17,7 +17,7 @@ function hide_password(ev) { return false; } const toggles = document.getElementsByClassName('toggle-password'); -for (let i = 0 ; i < toggles.length ; i++) { +for (let i = 0; i < toggles.length; i++) { toggles[i].addEventListener('mousedown', show_password); toggles[i].addEventListener('mouseup', hide_password); } @@ -68,7 +68,7 @@ function ask_confirmation(ev) { } } const confirms = document.getElementsByClassName('confirm'); -for (let i = 0 ; i < confirms.length ; i++) { +for (let i = 0; i < confirms.length; i++) { confirms[i].addEventListener('click', ask_confirmation); } // @license-end -- cgit v1.2.3