Merge branch 'angular-tests' of https://github.com/giant-rabbit/civicrm-core into...
[civicrm-core.git] / CRM / Utils / Geocode / Yahoo.php
index efe2b49c40bdd70e5f974b2d011054f83ae1a41f..7dd1e82692fb1d3bcbec71ad30957d429a0ad0a1 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
   +--------------------------------------------------------------------+
-  | CiviCRM version 4.5                                                |
+  | CiviCRM version 4.6                                                |
   +--------------------------------------------------------------------+
   | Copyright CiviCRM LLC (c) 2004-2014                                |
   +--------------------------------------------------------------------+
@@ -40,7 +40,7 @@
 class CRM_Utils_Geocode_Yahoo {
 
   /**
-   * server to retrieve the lat/long
+   * Server to retrieve the lat/long
    *
    * @var string
    * @static
@@ -48,7 +48,7 @@ class CRM_Utils_Geocode_Yahoo {
   static protected $_server = 'query.yahooapis.com';
 
   /**
-   * uri of service
+   * Uri of service
    *
    * @var string
    * @static
@@ -56,7 +56,7 @@ class CRM_Utils_Geocode_Yahoo {
   static protected $_uri = '/v1/public/yql';
 
   /**
-   * function that takes an address array and gets the latitude / longitude
+   * Function that takes an address array and gets the latitude / longitude
    * and postal code for this address. Note that at a later stage, we could
    * make this function also clean up the address into a more valid format
    *
@@ -66,7 +66,7 @@ class CRM_Utils_Geocode_Yahoo {
    * @return boolean true if we modified the address, false otherwise
    * @static
    */
-  static function format(&$values, $stateName = FALSE) {
+  public static function format(&$values, $stateName = FALSE) {
     CRM_Utils_System::checkPHPVersion(5, TRUE);
 
     $config = CRM_Core_Config::singleton();