Merge pull request #5830 from davecivicrm/CRM-16502
[civicrm-core.git] / CRM / Event / Badge / Logo.php
index dbc170172f4e2ec72f0f7d5d5ef2c60b19706e6b..b6ca8b1bf216fade6fb97456d38197a141b827a4 100644 (file)
@@ -5,28 +5,27 @@
  */
 class CRM_Event_Badge_Logo extends CRM_Event_Badge {
   /**
-   *
    */
   public function __construct() {
     parent::__construct();
     // A4
-    $pw           = 210;
-    $ph           = 297;
-    $h            = 50;
-    $w            = 75;
+    $pw = 210;
+    $ph = 297;
+    $h = 50;
+    $w = 75;
     $this->format = array(
       'name' => 'Sigel 3C',
-    'paper-size' => 'A4',
-    'metric' => 'mm',
-    'lMargin' => ($pw - $w * 2) / 2,
+      'paper-size' => 'A4',
+      'metric' => 'mm',
+      'lMargin' => ($pw - $w * 2) / 2,
       'tMargin' => ($ph - $h * 5) / 2,
-    'NX' => 2,
-    'NY' => 5,
-    'SpaceX' => 0,
-    'SpaceY' => 0,
+      'NX' => 2,
+      'NY' => 5,
+      'SpaceX' => 0,
+      'SpaceY' => 0,
       'width' => $w,
-    'height' => $h,
-    'font-size' => 12,
+      'height' => $h,
+      'font-size' => 12,
     );
     $this->lMarginLogo = 20;
     $this->tMarginName = 20;
@@ -40,7 +39,13 @@ class CRM_Event_Badge_Logo 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(array(
+        'width' => 0.1,
+        'cap' => 'round',
+        'join' => 'round',
+        'dash' => '2,2',
+        'color' => array(0, 0, 200),
+      ));
 
     $this->pdf->SetFontSize(8);
     $this->pdf->MultiCell($this->pdf->width - $this->lMarginLogo, 0, $participant['event_title'], $this->border, "L", 0, 1, $x + $this->lMarginLogo, $y);
@@ -54,4 +59,5 @@ class CRM_Event_Badge_Logo extends CRM_Event_Badge {
     $this->pdf->SetFontSize(10);
     $this->pdf->MultiCell($this->pdf->width, 0, $participant['current_employer'], $this->border, "C", 0, 1, $x, $this->pdf->getY());
   }
+
 }