From 73635d3bfa61cd7b5062aa5b473efb1998adc4cf Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Wed, 22 Feb 2017 14:47:30 +0000 Subject: [PATCH] Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- Pivot.skin.php | 46 +++++++++++++++++++++++++---------------- pivot.php | 54 ++++++++++++++++++++++++------------------------ view/sidebar.php | 8 +++---- 3 files changed, 59 insertions(+), 49 deletions(-) diff --git a/Pivot.skin.php b/Pivot.skin.php index 4f5c972..6af8f26 100644 --- a/Pivot.skin.php +++ b/Pivot.skin.php @@ -29,7 +29,7 @@ class Skinpivot extends SkinTemplate { 'useAddThisFollow' => false ); foreach ($wgPivotFeaturesDefaults as $fgOption => $fgOptionValue) { - if ( !isset($wgPivotFeatures[$fgOption]) ) { + if ( ! isset($wgPivotFeatures[$fgOption])) { $wgPivotFeatures[$fgOption] = $fgOptionValue; } } @@ -38,8 +38,9 @@ class Skinpivot extends SkinTemplate { $out->addHeadItem('ie-meta', ''); break; case 2: - if (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) - header('X-UA-Compatible: IE=edge'); + if (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) { + header('X-UA-Compatible: IE=edge'); + } break; } $out->addModuleStyles('skins.pivot'); @@ -65,7 +66,7 @@ class pivotTemplate extends BaseTemplate { $this->html('headelement'); switch ($wgPivotFeatures['usePivotTabs']) { case true: - ob_start(); + ob_start(); $this->html('bodytext'); $out = ob_get_contents(); ob_end_clean(); @@ -92,7 +93,10 @@ class pivotTemplate extends BaseTemplate {
- "; ?> + "; +} +?> - "; ?> + "; +} +?>