Chad has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/168404

Change subject: Swap and for &&
......................................................................

Swap and for &&

Change-Id: I7821a62586cc2d2f929fb3d7d5046958a70efbd0
---
M includes/EditPage.php
M includes/Linker.php
M includes/MimeMagic.php
M includes/Title.php
M includes/changes/RecentChange.php
M includes/parser/Parser.php
6 files changed, 8 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/04/168404/1

diff --git a/includes/EditPage.php b/includes/EditPage.php
index 764f413..fa19c78 100644
--- a/includes/EditPage.php
+++ b/includes/EditPage.php
@@ -3984,7 +3984,7 @@
                                // Do some sanity checks. These aren't needed 
for reversibility,
                                // but should help keep the breakage down if 
the editor
                                // breaks one of the entities whilst editing.
-                               if ( ( substr( $invalue, $i, 1 ) == ";" ) and ( 
strlen( $hexstring ) <= 6 ) ) {
+                               if ( ( substr( $invalue, $i, 1 ) == ";" ) && ( 
strlen( $hexstring ) <= 6 ) ) {
                                        $codepoint = hexdec( $hexstring );
                                        $result .= codepointToUtf8( $codepoint 
);
                                } else {
diff --git a/includes/Linker.php b/includes/Linker.php
index 1d327be..b4e4e2a 100644
--- a/includes/Linker.php
+++ b/includes/Linker.php
@@ -364,7 +364,7 @@
                foreach ( $merged as $key => $val ) {
                        # A false value suppresses the attribute, and we don't 
want the
                        # href attribute to be overridden.
-                       if ( $key != 'href' and $val !== false ) {
+                       if ( $key != 'href' && $val !== false ) {
                                $ret[$key] = $val;
                        }
                }
diff --git a/includes/MimeMagic.php b/includes/MimeMagic.php
index bfd6011..3406831 100644
--- a/includes/MimeMagic.php
+++ b/includes/MimeMagic.php
@@ -210,7 +210,7 @@
                }
 
                if ( $mimeTypeFile ) {
-                       if ( is_file( $mimeTypeFile ) and is_readable( 
$mimeTypeFile ) ) {
+                       if ( is_file( $mimeTypeFile ) && is_readable( 
$mimeTypeFile ) ) {
                                wfDebug( __METHOD__ . ": loading mime types 
from $mimeTypeFile\n" );
                                $types .= "\n";
                                $types .= file_get_contents( $mimeTypeFile );
@@ -287,7 +287,7 @@
                $info = MM_WELL_KNOWN_MIME_INFO;
 
                if ( $mimeInfoFile ) {
-                       if ( is_file( $mimeInfoFile ) and is_readable( 
$mimeInfoFile ) ) {
+                       if ( is_file( $mimeInfoFile ) && is_readable( 
$mimeInfoFile ) ) {
                                wfDebug( __METHOD__ . ": loading mime info from 
$mimeInfoFile\n" );
                                $info .= "\n";
                                $info .= file_get_contents( $mimeInfoFile );
diff --git a/includes/Title.php b/includes/Title.php
index c570633..0efc94e 100644
--- a/includes/Title.php
+++ b/includes/Title.php
@@ -3647,7 +3647,7 @@
                        if ( $right == 'autoconfirmed' ) {
                                $right = 'editsemiprotected'; // B/C
                        }
-                       if ( $tp and !$wgUser->isAllowed( $right ) ) {
+                       if ( $tp && !$wgUser->isAllowed( $right ) ) {
                                $errors[] = array( 'cantmove-titleprotected' );
                        }
                }
diff --git a/includes/changes/RecentChange.php 
b/includes/changes/RecentChange.php
index e33274e..d187c54 100644
--- a/includes/changes/RecentChange.php
+++ b/includes/changes/RecentChange.php
@@ -283,7 +283,7 @@
                }
 
                # If our database is strict about IP addresses, use NULL 
instead of an empty string
-               if ( $dbw->strictIPs() and $this->mAttribs['rc_ip'] == '' ) {
+               if ( $dbw->strictIPs() && $this->mAttribs['rc_ip'] == '' ) {
                        unset( $this->mAttribs['rc_ip'] );
                }
 
@@ -298,7 +298,7 @@
                $this->mAttribs['rc_id'] = $dbw->nextSequenceValue( 
'recentchanges_rc_id_seq' );
 
                ## If we are using foreign keys, an entry of 0 for the page_id 
will fail, so use NULL
-               if ( $dbw->cascadingDeletes() and $this->mAttribs['rc_cur_id'] 
== 0 ) {
+               if ( $dbw->cascadingDeletes() && $this->mAttribs['rc_cur_id'] 
== 0 ) {
                        unset( $this->mAttribs['rc_cur_id'] );
                }
 
diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php
index e6478a4..8dc9593 100644
--- a/includes/parser/Parser.php
+++ b/includes/parser/Parser.php
@@ -2598,7 +2598,7 @@
                                        $paragraphStack = false;
                                        # @todo bug 5718: paragraph closed
                                        $output .= $this->closeParagraph();
-                                       if ( $preOpenMatch and !$preCloseMatch 
) {
+                                       if ( $preOpenMatch && !$preCloseMatch ) 
{
                                                $this->mInPre = true;
                                        }
                                        $bqOffset = 0;

-- 
To view, visit https://gerrit.wikimedia.org/r/168404
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7821a62586cc2d2f929fb3d7d5046958a70efbd0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to