Changeset View
Changeset View
Standalone View
Standalone View
core/units/pdf/pdf_text.php
Show First 20 Lines • Show All 224 Lines • ▼ Show 20 Line(s) | |||||
$new_elem->Closed(); | $new_elem->Closed(); | ||||
} | } | ||||
foreach ($removed as $elem) { | foreach ($removed as $elem) { | ||||
$next_line->AddChild( $elem, false ); //don't init | $next_line->AddChild( $elem, false ); //don't init | ||||
} | } | ||||
} | } | ||||
function DrawAt($page, $x, $y, $spacer_w=0) | function DrawAt($page, $x=0, $y=0, $spacer_w=0) | ||||
Lint: Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceAfterDefault: Incorrect spacing between default value and equals sign for argument "$y"; expected 1 but found… | |||||
Incorrect spacing between argument "$spacer_w" and equals sign; expected 1 but found 0 Lint: Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals: Incorrect spacing between argument "$spacer_w" and equals sign; expected 1 but found 0 | |||||
Incorrect spacing between default value and equals sign for argument "$spacer_w"; expected 1 but found 0 Lint: Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceAfterDefault: Incorrect spacing between default value and equals sign for argument "$spacer_w"; expected 1… | |||||
Incorrect spacing between argument "$y" and equals sign; expected 1 but found 0 Lint: Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals: Incorrect spacing between argument "$y" and equals sign; expected 1 but found 0 | |||||
Incorrect spacing between default value and equals sign for argument "$x"; expected 1 but found 0 Lint: Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceAfterDefault: Incorrect spacing between default value and equals sign for argument "$x"; expected 1 but found… | |||||
Lint: CodingStandard.Commenting.FunctionComment.Missing: Missing function doc comment | |||||
Lint: Squiz.Scope.MethodScope.Missing: Visibility must be declared on method "DrawAt" | |||||
Incorrect spacing between argument "$x" and equals sign; expected 1 but found 0 Lint: Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals: Incorrect spacing between argument "$x" and equals sign; expected 1 but found 0 | |||||
Method name "kPDFTextElement::DrawAt" is not in camel caps format Lint: CodingStandard.NamingConventions.ValidFunctionName.NotCamelCaps: Method name "kPDFTextElement::DrawAt" is not in camel caps format | |||||
{ | { | ||||
$page->SetLineWidth(0.1); | $page->SetLineWidth(0.1); | ||||
$y += $this->Ascent; //finding baseline | $y += $this->Ascent; //finding baseline | ||||
$this->Helper->PDF->SetFont( $this->GetCSSProperty('font-family'), $this->GetCSSProperty('font-size'), $this->GetCSSProperty('font-weight'), $this->GetCSSProperty('font-style'), $this->GetCSSProperty('font-variant')); | $this->Helper->PDF->SetFont( $this->GetCSSProperty('font-family'), $this->GetCSSProperty('font-size'), $this->GetCSSProperty('font-weight'), $this->GetCSSProperty('font-style'), $this->GetCSSProperty('font-variant')); | ||||
if ($color = $this->GetCSSProperty('color')) { | if ($color = $this->GetCSSProperty('color')) { | ||||
$page->SetFillColor($color); | $page->SetFillColor($color); | ||||
} | } | ||||
Show All 11 Lines | |||||
$page->drawText($word, $x, $y); | $page->drawText($word, $x, $y); | ||||
$x += $page->GetStringWidth($word); | $x += $page->GetStringWidth($word); | ||||
$x += $spacer_w; | $x += $spacer_w; | ||||
} | } | ||||
} | } | ||||
$this->CurX = $x; | $this->CurX = $x; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |
Incorrect spacing between default value and equals sign for argument "$y"; expected 1 but found 0