<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
*
* @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();
error_reporting($old_error_reporting);
return TRUE;
}
- } catch (Exception $e) {
+ }
+ catch (Exception $e) {
}
error_reporting($old_error_reporting);
return FALSE;
}
+
}