Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
iMarbot committed Apr 21, 2024
1 parent 9389ddb commit c17340c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SpecialPage/SpecialResourceLoaderArticles.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) )
) {
Expand Down

0 comments on commit c17340c

Please sign in to comment.