X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FBadge%2FLogo5395.php;h=2343909174f5327c4943670b9287183231cae274;hb=9847453b18bb30a6d9a5a53e006b4dd9ba145e59;hp=411dfc74c59e835d123d09a947e808b66e240e3e;hpb=ff7da3a6508d0a7059c6527216920b2efb896b93;p=civicrm-core.git diff --git a/CRM/Event/Badge/Logo5395.php b/CRM/Event/Badge/Logo5395.php index 411dfc74c5..2343909174 100644 --- a/CRM/Event/Badge/Logo5395.php +++ b/CRM/Event/Badge/Logo5395.php @@ -4,6 +4,7 @@ * Class CRM_Event_Badge_Logo5395 */ class CRM_Event_Badge_Logo5395 extends CRM_Event_Badge { + /** */ public function __construct() { @@ -13,7 +14,7 @@ class CRM_Event_Badge_Logo5395 extends CRM_Event_Badge { $ph = 297; $h = 59.2; $w = 85.7; - $this->format = array( + $this->format = [ 'name' => 'Avery 5395', 'paper-size' => 'A4', 'metric' => 'mm', @@ -26,7 +27,7 @@ class CRM_Event_Badge_Logo5395 extends CRM_Event_Badge { 'width' => $w, 'height' => $h, 'font-size' => 12, - ); + ]; $this->lMarginLogo = 20; $this->tMarginName = 20; // $this->setDebug (); @@ -39,13 +40,13 @@ class CRM_Event_Badge_Logo5395 extends CRM_Event_Badge { $x = $this->pdf->GetAbsX(); $y = $this->pdf->GetY(); $this->printBackground(TRUE); - $this->pdf->SetLineStyle(array( - 'width' => 0.1, - 'cap' => 'round', - 'join' => 'round', - 'dash' => '2,2', - 'color' => array(0, 0, 200), - )); + $this->pdf->SetLineStyle([ + 'width' => 0.1, + 'cap' => 'round', + 'join' => 'round', + 'dash' => '2,2', + 'color' => [0, 0, 200], + ]); $this->pdf->SetFontSize(9); $this->pdf->MultiCell($this->pdf->width - $this->lMarginLogo, 0, $participant['event_title'], $this->border, "L", 0, 1, $x + $this->lMarginLogo, $y);