#401 : PHPCS Fixes & Some PHPUnit Fixes
This commit is contained in:
parent
259ce457f3
commit
104d8362ec
|
@ -1531,7 +1531,7 @@ class Engineering
|
||||||
}
|
}
|
||||||
$binX = '';
|
$binX = '';
|
||||||
foreach (str_split($x) as $char) {
|
foreach (str_split($x) as $char) {
|
||||||
$binX .= str_pad(hex2bin($char), 3, '0', STR_PAD_LEFT);
|
$binX .= str_pad(base_convert($char, 16, 2), 3, '0', STR_PAD_LEFT);
|
||||||
}
|
}
|
||||||
if (strlen($binX) == 40 && $binX[0] == '1') {
|
if (strlen($binX) == 40 && $binX[0] == '1') {
|
||||||
for ($i = 0; $i < 40; $i++) {
|
for ($i = 0; $i < 40; $i++) {
|
||||||
|
|
|
@ -137,7 +137,7 @@ class Date
|
||||||
$hours = round($dateValue * 24);
|
$hours = round($dateValue * 24);
|
||||||
$mins = round($dateValue * 1440) - round($hours * 60);
|
$mins = round($dateValue * 1440) - round($hours * 60);
|
||||||
$secs = round($dateValue * 86400) - round($hours * 3600) - round($mins * 60);
|
$secs = round($dateValue * 86400) - round($hours * 3600) - round($mins * 60);
|
||||||
$returnValue = (integer) gmmktime($hours , $mins, $secs);
|
$returnValue = (integer) gmmktime($hours, $mins, $secs);
|
||||||
}
|
}
|
||||||
|
|
||||||
$timezoneAdjustment = ($adjustToTimezone) ?
|
$timezoneAdjustment = ($adjustToTimezone) ?
|
||||||
|
|
Loading…
Reference in New Issue