Skip to content

Commit

Permalink
Scrutinizer Auto-Fixes
Browse files Browse the repository at this point in the history
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
  • Loading branch information
scrutinizer-auto-fixer committed Dec 13, 2016
1 parent 2d389a3 commit 2a8c5c5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion metro/layout.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$scheme = "win";
$GLOBALS['cfg']['Scheme'] = $scheme;

switch($scheme)
switch ($scheme)
{
case "win":

Expand Down
10 changes: 5 additions & 5 deletions mhn/css/pmd.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
cursor:default;
}
.tab_field_2{
background-color:<?php echo $GLOBALS['cfg']['cLte'];?>;
background-color:<?php echo $GLOBALS['cfg']['cLte']; ?>;
color:#000;
cursor:default;
}
Expand Down Expand Up @@ -118,7 +118,7 @@
.small_tab2{
vertical-align:top;
color:#fff;
background-color:<?php echo $GLOBALS['cfg']['cLte'];?>;
background-color:<?php echo $GLOBALS['cfg']['cLte']; ?>;
cursor:default;
padding-left:2px;
padding-right:2px;
Expand Down Expand Up @@ -162,7 +162,7 @@
cursor:default;
text-decoration:none;
vertical-align:middle;
background:<?php echo $GLOBALS['cfg']['cLte'];?>;
background:<?php echo $GLOBALS['cfg']['cLte']; ?>;
}
/* ---------------------------------------------------------------------------*/
.bor{width:10px;height:10px}
Expand Down Expand Up @@ -204,13 +204,13 @@
a.M_butt_Selected_down{
border:none;
color:#fff;
background-color:<?php echo $GLOBALS['cfg']['cSec'];?>;
background-color:<?php echo $GLOBALS['cfg']['cSec']; ?>;
}
a.M_butt_Selected_down_IE:hover,
a.M_butt_Selected_down:hover,
a.M_butt:hover{
color:#fff;
background-color:<?php echo $GLOBALS['cfg']['cPri'];?>;
background-color:<?php echo $GLOBALS['cfg']['cPri']; ?>;
}
#layer_menu{
z-index:98;
Expand Down
26 changes: 13 additions & 13 deletions mhn/layout.inc.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
$colorScheme = 'purple'; // brown | orange | blue | teal | red | indigo | grey | purple
$colorScheme = 'purple'; // brown | orange | blue | teal | red | indigo | grey | purple

$GLOBALS['cfg']['scheme'] = $colorScheme;
switch($colorScheme){
switch ($colorScheme) {
case 'orange':
$GLOBALS['cfg']['cPri'] = '#FB8C00'; //600
$GLOBALS['cfg']['cSec'] = '#8BC34A'; //500
Expand Down Expand Up @@ -73,31 +73,31 @@
$GLOBALS['cfg']['BgOne'] = '#E5E5E5';
$GLOBALS['cfg']['BgTwo'] = '#D5D5D5';

function shadeColor($hex,$percent){
function shadeColor($hex, $percent) {
$hash = '';
if (stristr($hex,'#')) {
$hex = str_replace('#','',$hex);
if (stristr($hex, '#')) {
$hex = str_replace('#', '', $hex);
$hash = '#';
}
$rgb = array(hexdec(substr($hex,0,2)), hexdec(substr($hex,2,2)), hexdec(substr($hex,4,2)));
for ($i=0; $i<3; $i++) {
$rgb = array(hexdec(substr($hex, 0, 2)), hexdec(substr($hex, 2, 2)), hexdec(substr($hex, 4, 2)));
for ($i = 0; $i < 3; $i++) {
if ($percent > 0) {
$rgb[$i] = round($rgb[$i] * $percent) + round(255 * (1-$percent));
$rgb[$i] = round($rgb[$i] * $percent) + round(255 * (1 - $percent));
} else {
$positivePercent = $percent - ($percent*2);
$rgb[$i] = round($rgb[$i] * $positivePercent) + round(0 * (1-$positivePercent));
$positivePercent = $percent - ($percent * 2);
$rgb[$i] = round($rgb[$i] * $positivePercent) + round(0 * (1 - $positivePercent));
}
if ($rgb[$i] > 255) {
$rgb[$i] = 255;
}
}
$hex = '';
for($i=0; $i < 3; $i++) {
for ($i = 0; $i < 3; $i++) {
$hexDigit = dechex($rgb[$i]);
if(strlen($hexDigit) == 1) {
if (strlen($hexDigit) == 1) {
$hexDigit = "0" . $hexDigit;
}
$hex .= $hexDigit;
}
return $hash.$hex;
return $hash . $hex;
}
2 changes: 1 addition & 1 deletion silkline/css/theme_left.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
line-height:1.5;
}

<?php if ( $GLOBALS['cfg']['LeftPointerEnable'] ) { ?>
<?php if ($GLOBALS['cfg']['LeftPointerEnable']) { ?>
div#left_tableList li:hover, div#left_tableList li:hover a {
background-color: <?php echo $GLOBALS['cfg']['LeftPointerColor']; ?>;
color:#FFF;
Expand Down

0 comments on commit 2a8c5c5

Please sign in to comment.