Yurik has uploaded a new change for review.
https://gerrit.wikimedia.org/r/101805
Change subject: Minor spacing fixes
......................................................................
Minor spacing fixes
Change-Id: Ia6ec82bf1f69573ddd12dd208fb2f031c39c814e
---
M includes/DeviceDetection.php
M includes/MobileFrontend.hooks.php
M includes/api/ApiMobileView.php
3 files changed, 5 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/05/101805/1
diff --git a/includes/DeviceDetection.php b/includes/DeviceDetection.php
index 09861bb..7f13797 100644
--- a/includes/DeviceDetection.php
+++ b/includes/DeviceDetection.php
@@ -79,8 +79,8 @@
*/
protected function detectFormat() {
if ( strpos( $this->acceptHeader, 'text/vnd.wap.wml' ) !== false
- && strpos( $this->acceptHeader, 'text/html' ) === false
)
- {
+ && strpos( $this->acceptHeader, 'text/html' ) === false
+ ) {
return 'wml';
}
return 'html';
diff --git a/includes/MobileFrontend.hooks.php
b/includes/MobileFrontend.hooks.php
index 5f91ff6..71f5dfe 100644
--- a/includes/MobileFrontend.hooks.php
+++ b/includes/MobileFrontend.hooks.php
@@ -48,8 +48,8 @@
$mobileContext->checkToggleView();
if ( !$mobileContext->shouldDisplayMobileView()
- || $mobileContext->isBlacklistedPage() )
- {
+ || $mobileContext->isBlacklistedPage()
+ ) {
// add any necessary resources for desktop view, if
enabled
if ( $wgMFEnableDesktopResources ) {
$out = $context->getOutput();
diff --git a/includes/api/ApiMobileView.php b/includes/api/ApiMobileView.php
index ec4d1e3..d83aaeb 100644
--- a/includes/api/ApiMobileView.php
+++ b/includes/api/ApiMobileView.php
@@ -414,8 +414,7 @@
if ( !isset( $prop['image'] ) && !isset( $prop['thumb'] ) ) {
return;
}
- if ( !isset( $data['image'] ) )
- {
+ if ( !isset( $data['image'] ) ) {
return;
}
$file = wfFindFile( $data['image'] );
--
To view, visit https://gerrit.wikimedia.org/r/101805
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia6ec82bf1f69573ddd12dd208fb2f031c39c814e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Yurik <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits