Civi\Angular - Docblock improvements.
[civicrm-core.git] / CRM / Utils / Network.php
index f9b3a4f088a7c1c04a5a442646a5fdd86f54ba2f..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        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -42,10 +42,13 @@ class CRM_Utils_Network {
    *
    * @param $host
    * @param $port
-   * @param int $serverStartupTimeOut seconds
-   * @param float $interval seconds to wait in between pollings
+   * @param int $serverStartupTimeOut
+   *   Seconds.
+   * @param float $interval
+   *   Seconds to wait in between pollings.
    *
-   * @return bool TRUE if service is online
+   * @return bool
+   *   TRUE if service is online
    */
   public static function waitForServiceStartup($host, $port, $serverStartupTimeOut, $interval = 0.333) {
     $start = time();
@@ -76,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;
   }
+
 }