mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-02-16 12:18:40 +00:00
Use more global namespacing
This commit is contained in:
parent
019b8aa9df
commit
11b8a6ab8c
|
|
@ -7958,11 +7958,11 @@ class TCPDF {
|
||||||
$ratio = \preg_replace('/[^0-9\.]/', '', $ratio);
|
$ratio = \preg_replace('/[^0-9\.]/', '', $ratio);
|
||||||
$ratio = \floatval($ratio);
|
$ratio = \floatval($ratio);
|
||||||
if ($type == 'u') {
|
if ($type == 'u') {
|
||||||
$chrdiff = floor(($diff + 12) * $ratio);
|
$chrdiff = \floor(($diff + 12) * $ratio);
|
||||||
$shift = \str_repeat(' ', $chrdiff);
|
$shift = \str_repeat(' ', $chrdiff);
|
||||||
$shift = TCPDF_FONTS::UTF8ToUTF16BE($shift, false, $this->isunicode, $this->CurrentFont);
|
$shift = TCPDF_FONTS::UTF8ToUTF16BE($shift, false, $this->isunicode, $this->CurrentFont);
|
||||||
} else {
|
} else {
|
||||||
$chrdiff = floor(($diff + 11) * $ratio);
|
$chrdiff = \floor(($diff + 11) * $ratio);
|
||||||
$shift = \str_repeat(' ', $chrdiff);
|
$shift = \str_repeat(' ', $chrdiff);
|
||||||
}
|
}
|
||||||
$page = \str_replace($aa, $shift, $page);
|
$page = \str_replace($aa, $shift, $page);
|
||||||
|
|
@ -14546,8 +14546,8 @@ class TCPDF {
|
||||||
if ($patch_array[$i]['points'][$j] > $bpcd) {
|
if ($patch_array[$i]['points'][$j] > $bpcd) {
|
||||||
$patch_array[$i]['points'][$j] = $bpcd;
|
$patch_array[$i]['points'][$j] = $bpcd;
|
||||||
}
|
}
|
||||||
$this->gradients[$n]['stream'] .= \chr((int) floor($patch_array[$i]['points'][$j] / 256));
|
$this->gradients[$n]['stream'] .= \chr((int) \floor($patch_array[$i]['points'][$j] / 256));
|
||||||
$this->gradients[$n]['stream'] .= \chr((int) floor(\intval($patch_array[$i]['points'][$j]) % 256));
|
$this->gradients[$n]['stream'] .= \chr((int) \floor(\intval($patch_array[$i]['points'][$j]) % 256));
|
||||||
}
|
}
|
||||||
$count_cols = \count($patch_array[$i]['colors']);
|
$count_cols = \count($patch_array[$i]['colors']);
|
||||||
for ($j=0; $j < $count_cols; ++$j) {
|
for ($j=0; $j < $count_cols; ++$j) {
|
||||||
|
|
@ -21585,7 +21585,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
||||||
$fw = ($tw - $this->GetStringWidth($pagenum.$filler));
|
$fw = ($tw - $this->GetStringWidth($pagenum.$filler));
|
||||||
$wfiller = $this->GetStringWidth($filler);
|
$wfiller = $this->GetStringWidth($filler);
|
||||||
if ($wfiller > 0) {
|
if ($wfiller > 0) {
|
||||||
$numfills = floor($fw / $wfiller);
|
$numfills = \floor($fw / $wfiller);
|
||||||
} else {
|
} else {
|
||||||
$numfills = 0;
|
$numfills = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user