Skip to content
Snippets Groups Projects
Commit 8882913c authored by Jared Hancock's avatar Jared Hancock
Browse files

Lint fixes (no code changes)

parent 5857dfaa
Branches
Tags
No related merge requests found
...@@ -77,7 +77,7 @@ class Ticket2PDF extends FPDF ...@@ -77,7 +77,7 @@ class Ticket2PDF extends FPDF
$this->SetY(-15); $this->SetY(-15);
$this->Cell(0, 2, '', "T", 2, 'L'); $this->Cell(0, 2, '', "T", 2, 'L');
$this->SetFont('Arial', 'I', 9); $this->SetFont('Arial', 'I', 9);
$this->Cell(0, 7, 'Ticket printed by '.$thisstaff->getUsername().' on '.date('r'), 0, 0, 'L'); $this->Cell(0, 7, 'Ticket printed by '.$thisstaff->getUserName().' on '.date('r'), 0, 0, 'L');
//$this->Cell(0,10,'Page '.($this->PageNo()-$this->pageOffset).' of {nb} '.$this->pageOffset.' '.$this->PageNo(),0,0,'R'); //$this->Cell(0,10,'Page '.($this->PageNo()-$this->pageOffset).' of {nb} '.$this->pageOffset.' '.$this->PageNo(),0,0,'R');
$this->Cell(0, 7, 'Page ' . ($this->PageNo() - $this->pageOffset), 0, 0, 'R'); $this->Cell(0, 7, 'Page ' . ($this->PageNo() - $this->pageOffset), 0, 0, 'R');
} }
...@@ -97,9 +97,9 @@ class Ticket2PDF extends FPDF ...@@ -97,9 +97,9 @@ class Ticket2PDF extends FPDF
$w =(($this->w/2)-$this->lMargin); $w =(($this->w/2)-$this->lMargin);
$l = 40; $l = 40;
$c = $w-$l; $c = $w-$l;
$this->setDrawColor(220, 220, 220); $this->SetDrawColor(220, 220, 220);
$this->setFillColor(244, 250, 255); $this->SetFillColor(244, 250, 255);
$this->setX($this->lMargin); $this->SetX($this->lMargin);
$this->SetFont('Arial', 'B', 11); $this->SetFont('Arial', 'B', 11);
$this->Cell($l, 7, 'Status', 1, 0, 'L', true); $this->Cell($l, 7, 'Status', 1, 0, 'L', true);
$this->SetFont(''); $this->SetFont('');
...@@ -189,7 +189,7 @@ class Ticket2PDF extends FPDF ...@@ -189,7 +189,7 @@ class Ticket2PDF extends FPDF
$color = $colors[$entry['thread_type']]; $color = $colors[$entry['thread_type']];
$this->setFillColor($color[0], $color[1], $color[2]); $this->SetFillColor($color[0], $color[1], $color[2]);
$this->SetFont('Arial', 'B', 11); $this->SetFont('Arial', 'B', 11);
$this->Cell($w/2, 7, Format::db_datetime($entry['created']), 'LTB', 0, 'L', true); $this->Cell($w/2, 7, Format::db_datetime($entry['created']), 'LTB', 0, 'L', true);
$this->SetFont('Arial', '', 10); $this->SetFont('Arial', '', 10);
......
...@@ -541,7 +541,7 @@ class Ticket{ ...@@ -541,7 +541,7 @@ class Ticket{
} }
function getClientThread() { function getClientThread() {
return $this->getThreadwithoutNotes(); return $this->getThreadWithoutNotes();
} }
function getThreadWithNotes() { function getThreadWithNotes() {
...@@ -558,7 +558,7 @@ class Ticket{ ...@@ -558,7 +558,7 @@ class Ticket{
if($includeNotes) //Include notes?? if($includeNotes) //Include notes??
$treadtypes[] = 'N'; $treadtypes[] = 'N';
return $this->getThreadbyType($treadtypes, $order); return $this->getThreadByType($treadtypes, $order);
} }
function getThreadByType($type, $order='ASC') { function getThreadByType($type, $order='ASC') {
...@@ -1555,7 +1555,7 @@ class Ticket{ ...@@ -1555,7 +1555,7 @@ class Ticket{
function pdfExport() { function pdfExport() {
$pdf = new Ticket2PDF($this, true); $pdf = new Ticket2PDF($this, true);
$name='Ticket-'.$this->getExtId().'.pdf'; $name='Ticket-'.$this->getExtId().'.pdf';
$pdf->output($name, 'I'); $pdf->Output($name, 'I');
exit; exit;
} }
......
...@@ -468,15 +468,15 @@ function AddFont($family, $style='', $file='') ...@@ -468,15 +468,15 @@ function AddFont($family, $style='', $file='')
if(!isset($name)) if(!isset($name))
$this->Error('Could not include font definition file'); $this->Error('Could not include font definition file');
$i=count($this->fonts)+1; $i=count($this->fonts)+1;
$this->fonts[$fontkey]=array('i'=>$i, 'type'=>$type, 'name'=>$name, 'desc'=>$desc, 'up'=>$up, 'ut'=>$ut, 'cw'=>$cw, 'enc'=>$enc, 'file'=>$file); $this->fonts[$fontkey]=array('i'=>$i, 'type'=>$type, 'name'=>$name, 'desc'=>$desc, 'up'=>$up, 'ut'=>$ut, 'cw'=>$cw, 'enc'=>$enc, 'file'=>$file); # nolint
if($diff) if($diff) # nolint
{ {
//Search existing encodings //Search existing encodings
$d=0; $d=0;
$nb=count($this->diffs); $nb=count($this->diffs);
for($i=1;$i<=$nb;$i++) for($i=1;$i<=$nb;$i++)
{ {
if($this->diffs[$i]==$diff) if($this->diffs[$i]==$diff) # nolint
{ {
$d=$i; $d=$i;
break; break;
...@@ -485,16 +485,16 @@ function AddFont($family, $style='', $file='') ...@@ -485,16 +485,16 @@ function AddFont($family, $style='', $file='')
if($d==0) if($d==0)
{ {
$d=$nb+1; $d=$nb+1;
$this->diffs[$d]=$diff; $this->diffs[$d]=$diff; # nolint
} }
$this->fonts[$fontkey]['diff']=$d; $this->fonts[$fontkey]['diff']=$d;
} }
if($file) if($file)
{ {
if($type=='TrueType') if($type=='TrueType')
$this->FontFiles[$file]=array('length1'=>$originalsize); $this->FontFiles[$file]=array('length1'=>$originalsize); # nolint
else else
$this->FontFiles[$file]=array('length1'=>$size1, 'length2'=>$size2); $this->FontFiles[$file]=array('length1'=>$size1, 'length2'=>$size2); # nolint
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment