From c17340c4eff8374ef83f5fa68ca4bc92f3f7c5c0 Mon Sep 17 00:00:00 2001 From: Martin B Date: Sun, 21 Apr 2024 14:50:10 +0100 Subject: [PATCH] code style --- src/SpecialPage/SpecialResourceLoaderArticles.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SpecialPage/SpecialResourceLoaderArticles.php b/src/SpecialPage/SpecialResourceLoaderArticles.php index 976f0a4..ed3f73f 100644 --- a/src/SpecialPage/SpecialResourceLoaderArticles.php +++ b/src/SpecialPage/SpecialResourceLoaderArticles.php @@ -347,8 +347,8 @@ public function trimValueCB( $value ) { public function validatePageCB( $value, $alldata ) { if ( ( $alldata[ 'Type' ] === 'style' - && !( (strlen( $value ) > 4 && substr( $value, -4 ) === '.css') - || (strlen( $value ) > 5 && substr( $value, -5 ) === '.less') + && !( ( strlen( $value ) > 4 && substr( $value, -4 ) === '.css' ) + || ( strlen( $value ) > 5 && substr( $value, -5 ) === '.less' ) ) ) || ( $alldata[ 'Type' ] === 'script' && !( strlen( $value ) > 3 && substr( $value, -3 ) === '.js' ) ) ) {