From d2997347a2cc22294389202b8411eddbeeb37f3e Mon Sep 17 00:00:00 2001 From: Fomafix Date: Wed, 4 Jan 2017 11:46:37 +0100 Subject: [PATCH] PHP code style: No space after unary not operator Change-Id: I4d3df0cfcda4d88e405164123893e57786fbe15e --- includes/WatchedItemQueryService.php | 2 +- includes/diff/DiffEngine.php | 4 ++-- includes/parser/Parser.php | 2 +- maintenance/populateInterwiki.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/WatchedItemQueryService.php b/includes/WatchedItemQueryService.php index cd78b499df..c80e4a5319 100644 --- a/includes/WatchedItemQueryService.php +++ b/includes/WatchedItemQueryService.php @@ -471,7 +471,7 @@ class WatchedItemQueryService { } private function getStartEndConds( IDatabase $db, array $options ) { - if ( !isset( $options['start'] ) && ! isset( $options['end'] ) ) { + if ( !isset( $options['start'] ) && !isset( $options['end'] ) ) { return []; } diff --git a/includes/diff/DiffEngine.php b/includes/diff/DiffEngine.php index babd00b5d7..25d50d371d 100644 --- a/includes/diff/DiffEngine.php +++ b/includes/diff/DiffEngine.php @@ -182,7 +182,7 @@ class DiffEngine { } while ( $i < $len && !$changed[$i] ) { - assert( $j < $other_len && ! $other_changed[$j] ); + assert( $j < $other_len && !$other_changed[$j] ); $i++; $j++; while ( $j < $other_len && $other_changed[$j] ) { @@ -247,7 +247,7 @@ class DiffEngine { $i++; } - assert( $j < $other_len && ! $other_changed[$j] ); + assert( $j < $other_len && !$other_changed[$j] ); $j++; if ( $j < $other_len && $other_changed[$j] ) { $corresponding = $i; diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 1ca9dacfc8..40a3755c73 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -5258,7 +5258,7 @@ class Parser { case 'framed': case 'thumbnail': // use first appearing option, discard others. - $validated = ! $seenformat; + $validated = !$seenformat; $seenformat = true; break; default: diff --git a/maintenance/populateInterwiki.php b/maintenance/populateInterwiki.php index 6c812bf6ca..8f7a918ae9 100644 --- a/maintenance/populateInterwiki.php +++ b/maintenance/populateInterwiki.php @@ -129,7 +129,7 @@ TEXT __METHOD__ ); - if ( ! $row ) { + if ( !$row ) { $dbw->insert( 'interwiki', [ -- 2.20.1