Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
Scrutinizer Auto-Fixer
2016-12-13 13:08:49 +00:00
parent 2d389a38c6
commit 2a8c5c5f1e
4 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ $GLOBALS['cfg']['FontFamilyFixed'] = 'Consolas, Monospace, "Lucida Gran
$scheme = "win";
$GLOBALS['cfg']['Scheme'] = $scheme;
switch($scheme)
switch ($scheme)
{
case "win":
+5 -5
View File
@@ -42,7 +42,7 @@ canvas.pmd *{behavior:url(#default#VML)}
cursor:default;
}
.tab_field_2{
background-color:<?php echo $GLOBALS['cfg']['cLte'];?>;
background-color:<?php echo $GLOBALS['cfg']['cLte']; ?>;
color:#000;
cursor:default;
}
@@ -118,7 +118,7 @@ canvas.pmd *{behavior:url(#default#VML)}
.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;
@@ -162,7 +162,7 @@ canvas.pmd *{behavior:url(#default#VML)}
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}
@@ -204,13 +204,13 @@ a.M_butt_Selected_down_IE,
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;
+13 -13
View File
@@ -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
@@ -73,31 +73,31 @@ $GLOBALS['cfg']['ThColor'] = '#000';
$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;
}
+1 -1
View File
@@ -106,7 +106,7 @@ div#left_tableList li {
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;