@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | $this->iNodeType = NODE_TYPE_ENDELEMENT; |
| 121 | 121 | $this->iNodeName = substr($name, 1); |
| 122 | 122 | $this->iNodeValue = ''; |
| 123 | - } else { |
|
| 123 | + }else { |
|
| 124 | 124 | if (!$this->isValidTagIdentifier($name)) { |
| 125 | 125 | $comment = false; |
| 126 | 126 | if ($name == '!--') { |
@@ -139,13 +139,13 @@ discard block |
||
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | return true; |
| 142 | - } else { |
|
| 142 | + }else { |
|
| 143 | 143 | $this->iNodeType = NODE_TYPE_ELEMENT; |
| 144 | 144 | $this->iNodeValue = ''; |
| 145 | 145 | $nameLength = strlen($name); |
| 146 | 146 | if ($nameLength > 0 && substr($name, $nameLength - 1, 1) == '/') { |
| 147 | 147 | $this->iNodeName = substr($name, 0, $nameLength - 1); |
| 148 | - } else { |
|
| 148 | + }else { |
|
| 149 | 149 | $this->iNodeName = $name; |
| 150 | 150 | } |
| 151 | 151 | $this->iNodeName = strtolower($this->iNodeName); |
@@ -157,14 +157,14 @@ discard block |
||
| 157 | 157 | $attrName = strtolower($attrName); |
| 158 | 158 | if (array_search($attrName, $HTML_ATTRIBUTE_STAND_ALONE) !== false) { |
| 159 | 159 | $this->iNodeAttributes[$attrName] = 1; |
| 160 | - } else { |
|
| 160 | + }else { |
|
| 161 | 161 | $this->skipBlanksInTag(); |
| 162 | 162 | if ($this->iCurrentChar == '=') { |
| 163 | 163 | $this->skipEqualsInTag(); |
| 164 | 164 | $this->skipBlanksInTag(); |
| 165 | 165 | $value = $this->readValueInTag(); |
| 166 | 166 | $this->iNodeAttributes[$attrName] = $value; |
| 167 | - } else { |
|
| 167 | + }else { |
|
| 168 | 168 | $this->iNodeAttributes[$attrName] = ''; |
| 169 | 169 | } |
| 170 | 170 | } |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | $this->skipInTag(["'"]); |
| 213 | 213 | $value = $this->skipToInTag(["'"]); |
| 214 | 214 | $this->skipInTag(["'"]); |
| 215 | - } else { |
|
| 215 | + }else { |
|
| 216 | 216 | $value = $this->skipToBlanksInTag(); |
| 217 | 217 | } |
| 218 | 218 | |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | $this->iHtmlTextIndex = $index; |
| 225 | 225 | if ($index >= $this->iHtmlTextLength) { |
| 226 | 226 | $this->iCurrentChar = -1; |
| 227 | - } else { |
|
| 227 | + }else { |
|
| 228 | 228 | $this->iCurrentChar = $this->iHtmlText[$index]; |
| 229 | 229 | } |
| 230 | 230 | } |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | $this->setTextIndex($this->iHtmlTextIndex + 1); |
| 236 | 236 | |
| 237 | 237 | return true; |
| 238 | - } else { |
|
| 238 | + }else { |
|
| 239 | 239 | return false; |
| 240 | 240 | } |
| 241 | 241 | } |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | while (($ch = $this->iCurrentChar) !== -1) { |
| 262 | 262 | if ($ch == '>') { |
| 263 | 263 | return $sb; |
| 264 | - } else { |
|
| 264 | + }else { |
|
| 265 | 265 | if (array_search($ch, $chars) === false) { |
| 266 | 266 | return $sb; |
| 267 | 267 | } |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | for ($i = $index; $i <= $end; $i++) { |
| 501 | 501 | $this->removeIndex($i); |
| 502 | 502 | } |
| 503 | - } else { |
|
| 503 | + }else { |
|
| 504 | 504 | $this->removeIndex($index); |
| 505 | 505 | } |
| 506 | 506 | } |
@@ -542,13 +542,13 @@ discard block |
||
| 542 | 542 | foreach ($attr[$i] as $key => $value) { |
| 543 | 543 | if (array_search($value, $HTML_ATTRIBUTE_STAND_ALONE) !== false) { |
| 544 | 544 | $str .= " $key"; |
| 545 | - } else { |
|
| 545 | + }else { |
|
| 546 | 546 | $str .= " $key=\"$value\""; |
| 547 | 547 | } |
| 548 | 548 | } |
| 549 | 549 | } |
| 550 | 550 | $str .= '>'; |
| 551 | - } else {//is tag ATEXTAREA |
|
| 551 | + }else {//is tag ATEXTAREA |
|
| 552 | 552 | $content = ''; |
| 553 | 553 | $str .= '<'.$name[$i]; |
| 554 | 554 | if (isset($attr[$i])) { |
@@ -557,7 +557,7 @@ discard block |
||
| 557 | 557 | $content = $value; |
| 558 | 558 | } elseif (array_search($value, $HTML_ATTRIBUTE_STAND_ALONE) !== false) { |
| 559 | 559 | $str .= " $key"; |
| 560 | - } else { |
|
| 560 | + }else { |
|
| 561 | 561 | $str .= " $key=\"$value\""; |
| 562 | 562 | } |
| 563 | 563 | } |
@@ -16,12 +16,12 @@ discard block |
||
| 16 | 16 | $PDF_VALIGN = ['top'=>'T', 'middle'=>'M', 'bottom'=>'B']; |
| 17 | 17 | class PDFTable extends FPDF |
| 18 | 18 | { |
| 19 | - public $left; //Toa do le trai cua trang |
|
| 20 | -public $right; //Toa do le phai cua trang |
|
| 21 | -public $top; //Toa do le tren cua trang |
|
| 22 | -public $bottom; //Toa do le duoi cua trang |
|
| 23 | -public $width; //Width of writable zone of page |
|
| 24 | -public $height; //Height of writable zone of page |
|
| 19 | + public $left; //Toa do le trai cua trang |
|
| 20 | +public $right; //Toa do le phai cua trang |
|
| 21 | +public $top; //Toa do le tren cua trang |
|
| 22 | +public $bottom; //Toa do le duoi cua trang |
|
| 23 | +public $width; //Width of writable zone of page |
|
| 24 | +public $height; //Height of writable zone of page |
|
| 25 | 25 | public $defaultFontFamily; |
| 26 | 26 | public $defaultFontStyle; |
| 27 | 27 | public $defaultFontSize; |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $c['wlinet'][$countline][0] += $t[1]; |
| 161 | 161 | $c['wlinet'][$countline][1]++; |
| 162 | 162 | $x += $t[1] + (($x > $this->paddingCell) ? $space : 0); |
| 163 | - } else {//auto break line |
|
| 163 | + }else {//auto break line |
|
| 164 | 164 | $h += $maxline * FHR + $this->spacingLine; |
| 165 | 165 | $c['hline'][] = $maxline * FHR + $this->spacingLine; |
| 166 | 166 | $c['wlines'][$countline] = $x - $this->paddingCell; |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | if (isset($f['color'])) { |
| 216 | 216 | $color = Color::HEX2RGB($f['color']); |
| 217 | 217 | $this->SetTextColor($color[0], $color[1], $color[2]); |
| 218 | - } else { |
|
| 218 | + }else { |
|
| 219 | 219 | unset($color); |
| 220 | 220 | } |
| 221 | 221 | $hl = $this->getLineHeight(); |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | $p = strpos($w, '%'); |
| 277 | 277 | if ($p !== false) { |
| 278 | 278 | return intval(substr($w, 0, $p) * $this->width / 100); |
| 279 | - } else { |
|
| 279 | + }else { |
|
| 280 | 280 | return intval($w); |
| 281 | 281 | } |
| 282 | 282 | } |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | } |
| 340 | 340 | if (isset($a['repeat'])) { |
| 341 | 341 | $table['repeat'][] = $row; |
| 342 | - } else { |
|
| 342 | + }else { |
|
| 343 | 343 | if (isset($a['pbr'])) { |
| 344 | 344 | $table['pbr'][$row] = 1; |
| 345 | 345 | } |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | $c['va'] = isset($a['valign']) ? $this->getVAlign($a['valign']) : 'T'; |
| 371 | 371 | if (isset($a['border'])) { |
| 372 | 372 | $c['border'] = $a['border']; |
| 373 | - } else { |
|
| 373 | + }else { |
|
| 374 | 374 | $c['border'] = $table['border']; |
| 375 | 375 | } |
| 376 | 376 | if (isset($a['bgcolor'])) { |
@@ -513,7 +513,7 @@ discard block |
||
| 513 | 513 | $path = $a['src']; |
| 514 | 514 | if (!is_file($path)) { |
| 515 | 515 | $this->Error('Image is not exists: '.$path); |
| 516 | - } else { |
|
| 516 | + }else { |
|
| 517 | 517 | list($u, $d) = $this->_getResolution($path); |
| 518 | 518 | $c['img'] = $path; |
| 519 | 519 | list($c['w'], $c['h']) = getimagesize($path); |
@@ -614,7 +614,7 @@ discard block |
||
| 614 | 614 | if (isset($wc['w']) && $wc['w'] < $wc['miw']) { |
| 615 | 615 | $wc['w'] = $wc['miw']; |
| 616 | 616 | } |
| 617 | - } else { |
|
| 617 | + }else { |
|
| 618 | 618 | $listspan[] = [$i, $j]; |
| 619 | 619 | } |
| 620 | 620 | } |
@@ -652,7 +652,7 @@ discard block |
||
| 652 | 652 | for ($k = $j; $k < $lc; $k++) { |
| 653 | 653 | $wc[$k]['miw'] += ($wc[$k]['miw'] / $wis) * $wi; |
| 654 | 654 | } |
| 655 | - } else {//Co mot so cot co kich thuoc auto => chia deu phan du cho cac cot auto |
|
| 655 | + }else {//Co mot so cot co kich thuoc auto => chia deu phan du cho cac cot auto |
|
| 656 | 656 | $wi = $c['miw'] - $wis; |
| 657 | 657 | foreach ($list as $_z2=>$k) { |
| 658 | 658 | $wc[$k]['miw'] += ($wc[$k]['miw'] / $wisa) * $wi; |
@@ -669,7 +669,7 @@ discard block |
||
| 669 | 669 | for ($k = $j; $k < $lc; $k++) { |
| 670 | 670 | $wc[$k]['maw'] += ($wc[$k]['maw'] / $was) * $wi; |
| 671 | 671 | } |
| 672 | - } else {//Co mot so cot co kich thuoc auto => chia deu phan du cho cac cot auto |
|
| 672 | + }else {//Co mot so cot co kich thuoc auto => chia deu phan du cho cac cot auto |
|
| 673 | 673 | $wi = $c['maw'] - $was; |
| 674 | 674 | foreach ($list as $_z2=>$k) { |
| 675 | 675 | $wc[$k]['maw'] += ($wc[$k]['maw'] / $wasa) * $wi; |
@@ -711,7 +711,7 @@ discard block |
||
| 711 | 711 | for ($k = 0; $k < $nc; $k++) { |
| 712 | 712 | $wc[$k]['miw'] += $wi; |
| 713 | 713 | } |
| 714 | - } else { |
|
| 714 | + }else { |
|
| 715 | 715 | //Co mot so cot co kich thuoc auto => chia deu phan du cho cac cot auto |
| 716 | 716 | $wi = ($table['w'] - $wis) / count($list); |
| 717 | 717 | foreach ($list as $k) { |
@@ -724,7 +724,7 @@ discard block |
||
| 724 | 724 | unset($wc[$i]); |
| 725 | 725 | $wc[$i] = $a; |
| 726 | 726 | } |
| 727 | - } else { |
|
| 727 | + }else { |
|
| 728 | 728 | $table['w'] = $a; |
| 729 | 729 | for ($i = 0; $i < $nc; $i++) { |
| 730 | 730 | $a = isset($wc[$i]['w']) ? $wc[$i]['miw'] : $wc[$i]['maw']; |
@@ -792,7 +792,7 @@ discard block |
||
| 792 | 792 | for ($k = $i; $k < $lr; $k++) { |
| 793 | 793 | $hr[$k] += ($hr[$k] / $hs) * $hi; |
| 794 | 794 | } |
| 795 | - } else { |
|
| 795 | + }else { |
|
| 796 | 796 | //Co mot so dong co kich thuoc auto => chia deu phan du cho cac dong auto |
| 797 | 797 | $hi = $c['mih'] - $hsa; |
| 798 | 798 | foreach ($list as $k) { |
@@ -806,7 +806,7 @@ discard block |
||
| 806 | 806 | foreach ($table['repeat'] as $i) { |
| 807 | 807 | $table['repeatH'] += $hr[$i]; |
| 808 | 808 | } |
| 809 | - } else { |
|
| 809 | + }else { |
|
| 810 | 810 | $table['repeat'] = 0; |
| 811 | 811 | } |
| 812 | 812 | $tth = 0; |
@@ -997,7 +997,7 @@ discard block |
||
| 997 | 997 | //Content |
| 998 | 998 | if (isset($c['img'])) { |
| 999 | 999 | $this->Image($c['img'], $x, $y, $c['w'], $c['h']); |
| 1000 | - } else { |
|
| 1000 | + }else { |
|
| 1001 | 1001 | $this->_drawCellAligned($x, $y, $c); |
| 1002 | 1002 | } |
| 1003 | 1003 | //Border |
@@ -1027,17 +1027,17 @@ discard block |
||
| 1027 | 1027 | { |
| 1028 | 1028 | if (isset($f['size']) && ($f['size'] > 0)) { |
| 1029 | 1029 | $fontSize = $f['size']; |
| 1030 | - } else { |
|
| 1030 | + }else { |
|
| 1031 | 1031 | $fontSize = $this->defaultFontSize; |
| 1032 | 1032 | } |
| 1033 | 1033 | if (isset($f['family'])) { |
| 1034 | 1034 | $fontFamily = $f['family']; |
| 1035 | - } else { |
|
| 1035 | + }else { |
|
| 1036 | 1036 | $fontFamily = $this->defaultFontFamily; |
| 1037 | 1037 | } |
| 1038 | 1038 | if (isset($f['style'])) { |
| 1039 | 1039 | $fontStyle = $f['style']; |
| 1040 | - } else { |
|
| 1040 | + }else { |
|
| 1041 | 1041 | $fontStyle = $this->defaultFontStyle; |
| 1042 | 1042 | } |
| 1043 | 1043 | $this->SetFont($fontFamily, $fontStyle, $fontSize); |
@@ -1069,7 +1069,7 @@ discard block |
||
| 1069 | 1069 | && $table['tth'] + $y0 > $this->bottom && $table['multipage']) { |
| 1070 | 1070 | $this->AddPage($this->CurOrientation); |
| 1071 | 1071 | $table['lasty'] = $this->y; |
| 1072 | - } else { |
|
| 1072 | + }else { |
|
| 1073 | 1073 | $table['lasty'] = $y0; |
| 1074 | 1074 | } |
| 1075 | 1075 | |
@@ -11,64 +11,64 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | class FPDF |
| 13 | 13 | { |
| 14 | - public $page; //current page number |
|
| 15 | -public $n; //current object number |
|
| 16 | -public $offsets; //array of object offsets |
|
| 17 | -public $buffer; //buffer holding in-memory PDF |
|
| 18 | -public $pages; //array containing pages |
|
| 19 | -public $state; //current document state |
|
| 20 | -public $compress; //compression flag |
|
| 21 | -public $k; //scale factor (number of points in user unit) |
|
| 22 | -public $DefOrientation; //default orientation |
|
| 23 | -public $CurOrientation; //current orientation |
|
| 24 | -public $PageFormats; //available page formats |
|
| 25 | -public $DefPageFormat; //default page format |
|
| 26 | -public $CurPageFormat; //current page format |
|
| 27 | -public $PageSizes; //array storing non-default page sizes |
|
| 14 | + public $page; //current page number |
|
| 15 | +public $n; //current object number |
|
| 16 | +public $offsets; //array of object offsets |
|
| 17 | +public $buffer; //buffer holding in-memory PDF |
|
| 18 | +public $pages; //array containing pages |
|
| 19 | +public $state; //current document state |
|
| 20 | +public $compress; //compression flag |
|
| 21 | +public $k; //scale factor (number of points in user unit) |
|
| 22 | +public $DefOrientation; //default orientation |
|
| 23 | +public $CurOrientation; //current orientation |
|
| 24 | +public $PageFormats; //available page formats |
|
| 25 | +public $DefPageFormat; //default page format |
|
| 26 | +public $CurPageFormat; //current page format |
|
| 27 | +public $PageSizes; //array storing non-default page sizes |
|
| 28 | 28 | public $wPt; |
| 29 | - public $hPt; //dimensions of current page in points |
|
| 29 | + public $hPt; //dimensions of current page in points |
|
| 30 | 30 | public $w; |
| 31 | - public $h; //dimensions of current page in user unit |
|
| 32 | -public $lMargin; //left margin |
|
| 33 | -public $tMargin; //top margin |
|
| 34 | -public $rMargin; //right margin |
|
| 35 | -public $bMargin; //page break margin |
|
| 36 | -public $cMargin; //cell margin |
|
| 31 | + public $h; //dimensions of current page in user unit |
|
| 32 | +public $lMargin; //left margin |
|
| 33 | +public $tMargin; //top margin |
|
| 34 | +public $rMargin; //right margin |
|
| 35 | +public $bMargin; //page break margin |
|
| 36 | +public $cMargin; //cell margin |
|
| 37 | 37 | public $x; |
| 38 | - public $y; //current position in user unit |
|
| 39 | -public $lasth; //height of last printed cell |
|
| 40 | -public $LineWidth; //line width in user unit |
|
| 41 | -public $CoreFonts; //array of standard font names |
|
| 42 | -public $fonts; //array of used fonts |
|
| 43 | -public $FontFiles; //array of font files |
|
| 44 | -public $diffs; //array of encoding differences |
|
| 45 | -public $FontFamily; //current font family |
|
| 46 | -public $FontStyle; //current font style |
|
| 47 | -public $underline; //underlining flag |
|
| 48 | -public $CurrentFont; //current font info |
|
| 49 | -public $FontSizePt; //current font size in points |
|
| 50 | -public $FontSize; //current font size in user unit |
|
| 51 | -public $DrawColor; //commands for drawing color |
|
| 52 | -public $FillColor; //commands for filling color |
|
| 53 | -public $TextColor; //commands for text color |
|
| 54 | -public $ColorFlag; //indicates whether fill and text colors are different |
|
| 55 | -public $ws; //word spacing |
|
| 56 | -public $images; //array of used images |
|
| 57 | -public $PageLinks; //array of links in pages |
|
| 58 | -public $links; //array of internal links |
|
| 59 | -public $AutoPageBreak; //automatic page breaking |
|
| 60 | -public $PageBreakTrigger; //threshold used to trigger page breaks |
|
| 61 | -public $InHeader; //flag set when processing header |
|
| 62 | -public $InFooter; //flag set when processing footer |
|
| 63 | -public $ZoomMode; //zoom display mode |
|
| 64 | -public $LayoutMode; //layout display mode |
|
| 65 | -public $title; //title |
|
| 66 | -public $subject; //subject |
|
| 67 | -public $author; //author |
|
| 68 | -public $keywords; //keywords |
|
| 69 | -public $creator; //creator |
|
| 70 | -public $AliasNbPages; //alias for total number of pages |
|
| 71 | -public $PDFVersion; //PDF version number |
|
| 38 | + public $y; //current position in user unit |
|
| 39 | +public $lasth; //height of last printed cell |
|
| 40 | +public $LineWidth; //line width in user unit |
|
| 41 | +public $CoreFonts; //array of standard font names |
|
| 42 | +public $fonts; //array of used fonts |
|
| 43 | +public $FontFiles; //array of font files |
|
| 44 | +public $diffs; //array of encoding differences |
|
| 45 | +public $FontFamily; //current font family |
|
| 46 | +public $FontStyle; //current font style |
|
| 47 | +public $underline; //underlining flag |
|
| 48 | +public $CurrentFont; //current font info |
|
| 49 | +public $FontSizePt; //current font size in points |
|
| 50 | +public $FontSize; //current font size in user unit |
|
| 51 | +public $DrawColor; //commands for drawing color |
|
| 52 | +public $FillColor; //commands for filling color |
|
| 53 | +public $TextColor; //commands for text color |
|
| 54 | +public $ColorFlag; //indicates whether fill and text colors are different |
|
| 55 | +public $ws; //word spacing |
|
| 56 | +public $images; //array of used images |
|
| 57 | +public $PageLinks; //array of links in pages |
|
| 58 | +public $links; //array of internal links |
|
| 59 | +public $AutoPageBreak; //automatic page breaking |
|
| 60 | +public $PageBreakTrigger; //threshold used to trigger page breaks |
|
| 61 | +public $InHeader; //flag set when processing header |
|
| 62 | +public $InFooter; //flag set when processing footer |
|
| 63 | +public $ZoomMode; //zoom display mode |
|
| 64 | +public $LayoutMode; //layout display mode |
|
| 65 | +public $title; //title |
|
| 66 | +public $subject; //subject |
|
| 67 | +public $author; //author |
|
| 68 | +public $keywords; //keywords |
|
| 69 | +public $creator; //creator |
|
| 70 | +public $AliasNbPages; //alias for total number of pages |
|
| 71 | +public $PDFVersion; //PDF version number |
|
| 72 | 72 | |
| 73 | 73 | /******************************************************************************* |
| 74 | 74 | * * |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $this->k = 72 / 2.54; |
| 118 | 118 | } elseif ($unit == 'in') { |
| 119 | 119 | $this->k = 72; |
| 120 | - } else { |
|
| 120 | + }else { |
|
| 121 | 121 | $this->Error('Incorrect unit: '.$unit); |
| 122 | 122 | } |
| 123 | 123 | //Page format |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $this->DefOrientation = 'L'; |
| 139 | 139 | $this->w = $this->DefPageFormat[1]; |
| 140 | 140 | $this->h = $this->DefPageFormat[0]; |
| 141 | - } else { |
|
| 141 | + }else { |
|
| 142 | 142 | $this->Error('Incorrect orientation: '.$orientation); |
| 143 | 143 | } |
| 144 | 144 | $this->CurOrientation = $this->DefOrientation; |
@@ -206,12 +206,12 @@ discard block |
||
| 206 | 206 | //Set display mode in viewer |
| 207 | 207 | if ($zoom == 'fullpage' || $zoom == 'fullwidth' || $zoom == 'real' || $zoom == 'default' || !is_string($zoom)) { |
| 208 | 208 | $this->ZoomMode = $zoom; |
| 209 | - } else { |
|
| 209 | + }else { |
|
| 210 | 210 | $this->Error('Incorrect zoom display mode: '.$zoom); |
| 211 | 211 | } |
| 212 | 212 | if ($layout == 'single' || $layout == 'continuous' || $layout == 'two' || $layout == 'default') { |
| 213 | 213 | $this->LayoutMode = $layout; |
| 214 | - } else { |
|
| 214 | + }else { |
|
| 215 | 215 | $this->Error('Incorrect layout display mode: '.$layout); |
| 216 | 216 | } |
| 217 | 217 | } |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | //Set page compression |
| 222 | 222 | if (function_exists('gzcompress')) { |
| 223 | 223 | $this->compress = $compress; |
| 224 | - } else { |
|
| 224 | + }else { |
|
| 225 | 225 | $this->compress = false; |
| 226 | 226 | } |
| 227 | 227 | } |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | //Set color for all stroking operations |
| 400 | 400 | if (($r == 0 && $g == 0 && $b == 0) || $g === null) { |
| 401 | 401 | $this->DrawColor = sprintf('%.3F G', $r / 255); |
| 402 | - } else { |
|
| 402 | + }else { |
|
| 403 | 403 | $this->DrawColor = sprintf('%.3F %.3F %.3F RG', $r / 255, $g / 255, $b / 255); |
| 404 | 404 | } |
| 405 | 405 | if ($this->page > 0) { |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | //Set color for all filling operations |
| 413 | 413 | if (($r == 0 && $g == 0 && $b == 0) || $g === null) { |
| 414 | 414 | $this->FillColor = sprintf('%.3F g', $r / 255); |
| 415 | - } else { |
|
| 415 | + }else { |
|
| 416 | 416 | $this->FillColor = sprintf('%.3F %.3F %.3F rg', $r / 255, $g / 255, $b / 255); |
| 417 | 417 | } |
| 418 | 418 | $this->ColorFlag = ($this->FillColor != $this->TextColor); |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | //Set color for text |
| 427 | 427 | if (($r == 0 && $g == 0 && $b == 0) || $g === null) { |
| 428 | 428 | $this->TextColor = sprintf('%.3F g', $r / 255); |
| 429 | - } else { |
|
| 429 | + }else { |
|
| 430 | 430 | $this->TextColor = sprintf('%.3F %.3F %.3F rg', $r / 255, $g / 255, $b / 255); |
| 431 | 431 | } |
| 432 | 432 | $this->ColorFlag = ($this->FillColor != $this->TextColor); |
@@ -468,7 +468,7 @@ discard block |
||
| 468 | 468 | $op = 'f'; |
| 469 | 469 | } elseif ($style == 'FD' || $style == 'DF') { |
| 470 | 470 | $op = 'B'; |
| 471 | - } else { |
|
| 471 | + }else { |
|
| 472 | 472 | $op = 'S'; |
| 473 | 473 | } |
| 474 | 474 | $this->_out(sprintf('%.2F %.2F %.2F %.2F re %s', $x * $this->k, ($this->h - $y) * $this->k, $w * $this->k, -$h * $this->k, $op)); |
@@ -517,7 +517,7 @@ discard block |
||
| 517 | 517 | if ($file) { |
| 518 | 518 | if ($type == 'TrueType') { |
| 519 | 519 | $this->FontFiles[$file] = ['length1'=>$originalsize]; |
| 520 | - } else { |
|
| 520 | + }else { |
|
| 521 | 521 | $this->FontFiles[$file] = ['length1'=>$size1, 'length2'=>$size2]; |
| 522 | 522 | } |
| 523 | 523 | } |
@@ -541,7 +541,7 @@ discard block |
||
| 541 | 541 | if (strpos($style, 'U') !== false) { |
| 542 | 542 | $this->underline = true; |
| 543 | 543 | $style = str_replace('U', '', $style); |
| 544 | - } else { |
|
| 544 | + }else { |
|
| 545 | 545 | $this->underline = false; |
| 546 | 546 | } |
| 547 | 547 | if ($style == 'IB') { |
@@ -574,7 +574,7 @@ discard block |
||
| 574 | 574 | $name = $this->CoreFonts[$fontkey]; |
| 575 | 575 | $cw = $fpdf_charwidths[$fontkey]; |
| 576 | 576 | $this->fonts[$fontkey] = ['i'=>$i, 'type'=>'core', 'name'=>$name, 'up'=>-100, 'ut'=>50, 'cw'=>$cw]; |
| 577 | - } else { |
|
| 577 | + }else { |
|
| 578 | 578 | $this->Error('Undefined font: '.$family.' '.$style); |
| 579 | 579 | } |
| 580 | 580 | } |
@@ -674,7 +674,7 @@ discard block |
||
| 674 | 674 | if ($fill || $border == 1) { |
| 675 | 675 | if ($fill) { |
| 676 | 676 | $op = ($border == 1) ? 'B' : 'f'; |
| 677 | - } else { |
|
| 677 | + }else { |
|
| 678 | 678 | $op = 'S'; |
| 679 | 679 | } |
| 680 | 680 | $s = sprintf('%.2F %.2F %.2F %.2F re %s ', $this->x * $k, ($this->h - $this->y) * $k, $w * $k, -$h * $k, $op); |
@@ -700,7 +700,7 @@ discard block |
||
| 700 | 700 | $dx = $w - $this->cMargin - $this->GetStringWidth($txt); |
| 701 | 701 | } elseif ($align == 'C') { |
| 702 | 702 | $dx = ($w - $this->GetStringWidth($txt)) / 2; |
| 703 | - } else { |
|
| 703 | + }else { |
|
| 704 | 704 | $dx = $this->cMargin; |
| 705 | 705 | } |
| 706 | 706 | if ($this->ColorFlag) { |
@@ -728,7 +728,7 @@ discard block |
||
| 728 | 728 | if ($ln == 1) { |
| 729 | 729 | $this->x = $this->lMargin; |
| 730 | 730 | } |
| 731 | - } else { |
|
| 731 | + }else { |
|
| 732 | 732 | $this->x += $w; |
| 733 | 733 | } |
| 734 | 734 | } |
@@ -752,7 +752,7 @@ discard block |
||
| 752 | 752 | $border = 'LTRB'; |
| 753 | 753 | $b = 'LRT'; |
| 754 | 754 | $b2 = 'LR'; |
| 755 | - } else { |
|
| 755 | + }else { |
|
| 756 | 756 | $b2 = ''; |
| 757 | 757 | if (strpos($border, 'L') !== false) { |
| 758 | 758 | $b2 .= 'L'; |
@@ -807,7 +807,7 @@ discard block |
||
| 807 | 807 | $this->_out('0 Tw'); |
| 808 | 808 | } |
| 809 | 809 | $this->Cell($w, $h, substr($s, $j, $i - $j), $b, 2, $align, $fill); |
| 810 | - } else { |
|
| 810 | + }else { |
|
| 811 | 811 | if ($align == 'J') { |
| 812 | 812 | $this->ws = ($ns > 1) ? ($wmax - $ls) / 1000 * $this->FontSize / ($ns - 1) : 0; |
| 813 | 813 | $this->_out(sprintf('%.3F Tw', $this->ws * $this->k)); |
@@ -823,7 +823,7 @@ discard block |
||
| 823 | 823 | if ($border && $nl == 2) { |
| 824 | 824 | $b = $b2; |
| 825 | 825 | } |
| 826 | - } else { |
|
| 826 | + }else { |
|
| 827 | 827 | $i++; |
| 828 | 828 | } |
| 829 | 829 | } |
@@ -891,7 +891,7 @@ discard block |
||
| 891 | 891 | $i++; |
| 892 | 892 | } |
| 893 | 893 | $this->Cell($w, $h, substr($s, $j, $i - $j), 0, 2, '', 0, $link); |
| 894 | - } else { |
|
| 894 | + }else { |
|
| 895 | 895 | $this->Cell($w, $h, substr($s, $j, $sep - $j), 0, 2, '', 0, $link); |
| 896 | 896 | $i = $sep + 1; |
| 897 | 897 | } |
@@ -904,7 +904,7 @@ discard block |
||
| 904 | 904 | $wmax = ($w - 2 * $this->cMargin) * 1000 / $this->FontSize; |
| 905 | 905 | } |
| 906 | 906 | $nl++; |
| 907 | - } else { |
|
| 907 | + }else { |
|
| 908 | 908 | $i++; |
| 909 | 909 | } |
| 910 | 910 | } |
@@ -920,7 +920,7 @@ discard block |
||
| 920 | 920 | $this->x = $this->lMargin; |
| 921 | 921 | if ($h === null) { |
| 922 | 922 | $this->y += $this->lasth; |
| 923 | - } else { |
|
| 923 | + }else { |
|
| 924 | 924 | $this->y += $h; |
| 925 | 925 | } |
| 926 | 926 | } |
@@ -948,7 +948,7 @@ discard block |
||
| 948 | 948 | $info = $this->$mtd($file); |
| 949 | 949 | $info['i'] = count($this->images) + 1; |
| 950 | 950 | $this->images[$file] = $info; |
| 951 | - } else { |
|
| 951 | + }else { |
|
| 952 | 952 | $info = $this->images[$file]; |
| 953 | 953 | } |
| 954 | 954 | //Automatic width and height calculation if needed |
@@ -992,7 +992,7 @@ discard block |
||
| 992 | 992 | //Set x position |
| 993 | 993 | if ($x >= 0) { |
| 994 | 994 | $this->x = $x; |
| 995 | - } else { |
|
| 995 | + }else { |
|
| 996 | 996 | $this->x = $this->w + $x; |
| 997 | 997 | } |
| 998 | 998 | } |
@@ -1009,7 +1009,7 @@ discard block |
||
| 1009 | 1009 | $this->x = $this->lMargin; |
| 1010 | 1010 | if ($y >= 0) { |
| 1011 | 1011 | $this->y = $y; |
| 1012 | - } else { |
|
| 1012 | + }else { |
|
| 1013 | 1013 | $this->y = $this->h + $y; |
| 1014 | 1014 | } |
| 1015 | 1015 | } |
@@ -1032,7 +1032,7 @@ discard block |
||
| 1032 | 1032 | if ($name == '') { |
| 1033 | 1033 | $name = 'doc.pdf'; |
| 1034 | 1034 | $dest = 'I'; |
| 1035 | - } else { |
|
| 1035 | + }else { |
|
| 1036 | 1036 | $dest = 'F'; |
| 1037 | 1037 | } |
| 1038 | 1038 | } |
@@ -1143,12 +1143,12 @@ discard block |
||
| 1143 | 1143 | //Check page size |
| 1144 | 1144 | if ($orientation == '') { |
| 1145 | 1145 | $orientation = $this->DefOrientation; |
| 1146 | - } else { |
|
| 1146 | + }else { |
|
| 1147 | 1147 | $orientation = strtoupper($orientation[0]); |
| 1148 | 1148 | } |
| 1149 | 1149 | if ($format == '') { |
| 1150 | 1150 | $format = $this->DefPageFormat; |
| 1151 | - } else { |
|
| 1151 | + }else { |
|
| 1152 | 1152 | if (is_string($format)) { |
| 1153 | 1153 | $format = $this->_getpageformat($format); |
| 1154 | 1154 | } |
@@ -1158,7 +1158,7 @@ discard block |
||
| 1158 | 1158 | if ($orientation == 'P') { |
| 1159 | 1159 | $this->w = $format[0]; |
| 1160 | 1160 | $this->h = $format[1]; |
| 1161 | - } else { |
|
| 1161 | + }else { |
|
| 1162 | 1162 | $this->w = $format[1]; |
| 1163 | 1163 | $this->h = $format[0]; |
| 1164 | 1164 | } |
@@ -1214,7 +1214,7 @@ discard block |
||
| 1214 | 1214 | $c2 = ord($s[$i++]); |
| 1215 | 1215 | $res .= chr(($c1 & 0x1C) >> 2); |
| 1216 | 1216 | $res .= chr((($c1 & 0x03) << 6) + ($c2 & 0x3F)); |
| 1217 | - } else { |
|
| 1217 | + }else { |
|
| 1218 | 1218 | //Single-byte character |
| 1219 | 1219 | $res .= "\0".chr($c1); |
| 1220 | 1220 | } |
@@ -1247,7 +1247,7 @@ discard block |
||
| 1247 | 1247 | $colspace = 'DeviceRGB'; |
| 1248 | 1248 | } elseif ($a['channels'] == 4) { |
| 1249 | 1249 | $colspace = 'DeviceCMYK'; |
| 1250 | - } else { |
|
| 1250 | + }else { |
|
| 1251 | 1251 | $colspace = 'DeviceGray'; |
| 1252 | 1252 | } |
| 1253 | 1253 | $bpc = isset($a['bits']) ? $a['bits'] : 8; |
@@ -1291,7 +1291,7 @@ discard block |
||
| 1291 | 1291 | $colspace = 'DeviceRGB'; |
| 1292 | 1292 | } elseif ($ct == 3) { |
| 1293 | 1293 | $colspace = 'Indexed'; |
| 1294 | - } else { |
|
| 1294 | + }else { |
|
| 1295 | 1295 | $this->Error('Alpha channel not supported: '.$file); |
| 1296 | 1296 | } |
| 1297 | 1297 | if (ord($this->_readstream($f, 1)) != 0) { |
@@ -1323,7 +1323,7 @@ discard block |
||
| 1323 | 1323 | $trns = [ord(substr($t, 1, 1))]; |
| 1324 | 1324 | } elseif ($ct == 2) { |
| 1325 | 1325 | $trns = [ord(substr($t, 1, 1)), ord(substr($t, 3, 1)), ord(substr($t, 5, 1))]; |
| 1326 | - } else { |
|
| 1326 | + }else { |
|
| 1327 | 1327 | $pos = strpos($t, chr(0)); |
| 1328 | 1328 | if ($pos !== false) { |
| 1329 | 1329 | $trns = [$pos]; |
@@ -1336,7 +1336,7 @@ discard block |
||
| 1336 | 1336 | $this->_readstream($f, 4); |
| 1337 | 1337 | } elseif ($type == 'IEND') { |
| 1338 | 1338 | break; |
| 1339 | - } else { |
|
| 1339 | + }else { |
|
| 1340 | 1340 | $this->_readstream($f, $n + 4); |
| 1341 | 1341 | } |
| 1342 | 1342 | } while ($n); |
@@ -1423,7 +1423,7 @@ discard block |
||
| 1423 | 1423 | //Add a line to the document |
| 1424 | 1424 | if ($this->state == 2) { |
| 1425 | 1425 | $this->pages[$this->page] .= $s."\n"; |
| 1426 | - } else { |
|
| 1426 | + }else { |
|
| 1427 | 1427 | $this->buffer .= $s."\n"; |
| 1428 | 1428 | } |
| 1429 | 1429 | } |
@@ -1440,7 +1440,7 @@ discard block |
||
| 1440 | 1440 | if ($this->DefOrientation == 'P') { |
| 1441 | 1441 | $wPt = $this->DefPageFormat[0] * $this->k; |
| 1442 | 1442 | $hPt = $this->DefPageFormat[1] * $this->k; |
| 1443 | - } else { |
|
| 1443 | + }else { |
|
| 1444 | 1444 | $wPt = $this->DefPageFormat[1] * $this->k; |
| 1445 | 1445 | $hPt = $this->DefPageFormat[0] * $this->k; |
| 1446 | 1446 | } |
@@ -1462,7 +1462,7 @@ discard block |
||
| 1462 | 1462 | $annots .= '<</Type /Annot /Subtype /Link /Rect ['.$rect.'] /Border [0 0 0] '; |
| 1463 | 1463 | if (is_string($pl[4])) { |
| 1464 | 1464 | $annots .= '/A <</S /URI /URI '.$this->_textstring($pl[4]).'>>>>'; |
| 1465 | - } else { |
|
| 1465 | + }else { |
|
| 1466 | 1466 | $l = $this->links[$pl[4]]; |
| 1467 | 1467 | $h = isset($this->PageSizes[$l[0]]) ? $this->PageSizes[$l[0]][1] : $hPt; |
| 1468 | 1468 | $annots .= sprintf('/Dest [%d 0 R /XYZ 0 %.2F null]>>', 1 + 2 * $l[0], $h - $l[1] * $this->k); |
@@ -1568,7 +1568,7 @@ discard block |
||
| 1568 | 1568 | if ($font['enc']) { |
| 1569 | 1569 | if (isset($font['diff'])) { |
| 1570 | 1570 | $this->_out('/Encoding '.($nf + $font['diff']).' 0 R'); |
| 1571 | - } else { |
|
| 1571 | + }else { |
|
| 1572 | 1572 | $this->_out('/Encoding /WinAnsiEncoding'); |
| 1573 | 1573 | } |
| 1574 | 1574 | } |
@@ -1595,7 +1595,7 @@ discard block |
||
| 1595 | 1595 | } |
| 1596 | 1596 | $this->_out($s.'>>'); |
| 1597 | 1597 | $this->_out('endobj'); |
| 1598 | - } else { |
|
| 1598 | + }else { |
|
| 1599 | 1599 | //Allow for additional types |
| 1600 | 1600 | $mtd = '_put'.strtolower($type); |
| 1601 | 1601 | if (!method_exists($this, $mtd)) { |
@@ -1619,7 +1619,7 @@ discard block |
||
| 1619 | 1619 | $this->_out('/Height '.$info['h']); |
| 1620 | 1620 | if ($info['cs'] == 'Indexed') { |
| 1621 | 1621 | $this->_out('/ColorSpace [/Indexed /DeviceRGB '.(strlen($info['pal']) / 3 - 1).' '.($this->n + 1).' 0 R]'); |
| 1622 | - } else { |
|
| 1622 | + }else { |
|
| 1623 | 1623 | $this->_out('/ColorSpace /'.$info['cs']); |
| 1624 | 1624 | if ($info['cs'] == 'DeviceCMYK') { |
| 1625 | 1625 | $this->_out('/Decode [1 0 1 0 1 0 1 0]'); |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $tickets->log_tickets($id, $sla, $reporteddate, $reportedby, $telp, $email, $problemsummary, $problemdetail, $ticketstatus, $assignee, $assigneddate, $pendingby, $pendingdate, $resolution, $resolvedby, $resolveddate, $closedby, $closeddate, $changes, $changeby); |
| 48 | 48 | if ($user['level'] == 'Admin') { |
| 49 | 49 | header('Location: ticketlist.php'); |
| 50 | - } else { |
|
| 50 | + }else { |
|
| 51 | 51 | header('Location: myticketbyassignee.php'); |
| 52 | 52 | } |
| 53 | 53 | } |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | $user = $users->userdata($_SESSION['loginid']); |
| 6 | 6 | if ($user['level'] == 'Admin' || $user['level'] == 'Manager') { |
| 7 | 7 | $akses = true; |
| 8 | -} else { |
|
| 8 | +}else { |
|
| 9 | 9 | $akses = false; |
| 10 | 10 | } |
| 11 | 11 | if ($akses = false) { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | } elseif ($currenttime >= $slawarningtime) { |
| 79 | 79 | $slabgcolor = '#FFFF00'; |
| 80 | 80 | $slatxtcolor = '#000000'; |
| 81 | - } else { |
|
| 81 | + }else { |
|
| 82 | 82 | $slabgcolor = '#00FF00'; |
| 83 | 83 | $slatxtcolor = '#000000'; |
| 84 | 84 | } |