Merge pull request #6394 from colemanw/CRM-14599
[civicrm-core.git] / CRM / Event / Badge.php
index f5e59dad35d39d94cf9814cb2e359dd55fb3f2fb..6d35cab5fd1031a4300fc323ad850d55aa97129d 100644 (file)
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /*
-* Copyright (C) 2010 Tech To The People
-* Licensed to CiviCRM under the Academic Free License version 3.0.
-*
-*/
+ * Copyright (C) 2010 Tech To The People
+ * Licensed to CiviCRM under the Academic Free License version 3.0.
+ *
+ */
 
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
  * $Id$
  *
  */
@@ -51,7 +51,7 @@ class CRM_Event_Badge {
       'cap' => 'round',
       'join' => 'round',
       'dash' => '2,2',
-      'color' => array(0, 0, 200)
+      'color' => array(0, 0, 200),
     );
     $this->format = '5160';
     $this->imgExtension = 'png';
@@ -80,7 +80,7 @@ class CRM_Event_Badge {
    *
    * @param array $participants
    *
-   * @return null
+   * @return;
    */
   public function run(&$participants) {
     // fetch the 1st participant, and take her event to retrieve its attributes
@@ -154,8 +154,8 @@ class CRM_Event_Badge {
             'cap' => 'round',
             'join' => 'round',
             'dash' => '2,10',
-            'color' => array(255, 0, 0)
-          )
+            'color' => array(255, 0, 0),
+          ),
         ));
     }
     $img = $this->getImageFileName($this->event->id, $img);
@@ -171,8 +171,8 @@ class CRM_Event_Badge {
   }
 
   /**
-   * This is supposed to be overrided
-   **/
+   * This is supposed to be overrided.
+   */
   public function generateLabel($participant) {
     $txt = "{$this->event['title']}
 {$participant['display_name']}
@@ -189,7 +189,7 @@ class CRM_Event_Badge {
    *
    * @param array $participants
    *
-   * @return null
+   * @return;
    */
   public function createLabels(&$participants) {
 
@@ -208,4 +208,5 @@ class CRM_Event_Badge {
     }
     $this->pdf->Output($this->event->title . '.pdf', 'D');
   }
+
 }