comment fixes
[civicrm-core.git] / CRM / Contact / Page / Inline / Phone.php
index 2781508b0addca3d658c9ca26d60619baf0ec9b7..6a3388cdef0d4553ae222f678837041a7090a115 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2015
  */
 
 /**
- * Dummy page for details of Phone
- *
+ * Dummy page for details of Phone.
  */
 class CRM_Contact_Page_Inline_Phone extends CRM_Core_Page {
 
@@ -43,12 +40,8 @@ class CRM_Contact_Page_Inline_Phone extends CRM_Core_Page {
    * Run the page.
    *
    * This method is called after the page is created.
-   *
-   * @return void
-   * @access public
-   *
    */
-  function run() {
+  public function run() {
     // get the emails for this contact
     $contactId = CRM_Utils_Request::retrieve('cid', 'Positive', CRM_Core_DAO::$_nullObject, TRUE, NULL, $_REQUEST);
 
@@ -64,12 +57,12 @@ class CRM_Contact_Page_Inline_Phone extends CRM_Core_Page {
       }
     }
 
-    $contact = new CRM_Contact_BAO_Contact( );
+    $contact = new CRM_Contact_BAO_Contact();
     $contact->id = $contactId;
-    $contact->find(true);
-    $privacy = array( );
-    foreach ( CRM_Contact_BAO_Contact::$_commPrefs as $name ) {
-      if ( isset( $contact->$name ) ) {
+    $contact->find(TRUE);
+    $privacy = array();
+    foreach (CRM_Contact_BAO_Contact::$_commPrefs as $name) {
+      if (isset($contact->$name)) {
         $privacy[$name] = $contact->$name;
       }
     }
@@ -84,5 +77,5 @@ class CRM_Contact_Page_Inline_Phone extends CRM_Core_Page {
     // finally call parent
     parent::run();
   }
-}
 
+}