Civi\Angular - Docblock improvements.
[civicrm-core.git] / CRM / Utils / Network.php
index bfaf3d8f571937f5322dd8d1acc40f886c4e2036..eac7df86fa7d28744a081af16ee29596390beb42 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -40,9 +40,15 @@ class CRM_Utils_Network {
   /**
    * Try connecting to a TCP service; if it fails, retry. Repeat until serverStartupTimeOut elapses.
    *
-   * @param int $serverStartupTimeOut seconds
-   * @param float $interval seconds to wait in between pollings
-   * @return bool TRUE if service is online
+   * @param $host
+   * @param $port
+   * @param int $serverStartupTimeOut
+   *   Seconds.
+   * @param float $interval
+   *   Seconds to wait in between pollings.
+   *
+   * @return bool
+   *   TRUE if service is online
    */
   public static function waitForServiceStartup($host, $port, $serverStartupTimeOut, $interval = 0.333) {
     $start = time();
@@ -73,9 +79,11 @@ class CRM_Utils_Network {
         error_reporting($old_error_reporting);
         return TRUE;
       }
-    } catch (Exception $e) {
+    }
+    catch (Exception $e) {
     }
     error_reporting($old_error_reporting);
     return FALSE;
   }
+
 }