1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-07 01:00:09 +01:00

remove superstition

This commit is contained in:
Taylor Otwell
2016-09-21 09:17:36 -05:00
parent 372775a4fa
commit b52f463ecb

View File

@@ -7,14 +7,14 @@
class Ngrok
{
public $tunnelsEndpoint = 'http://127.0.0.1:4040/api/tunnels';
var $tunnelsEndpoint = 'http://127.0.0.1:4040/api/tunnels';
/**
* Get the current tunnel URL from the Ngrok API.
*
* @return string
*/
public function currentTunnelUrl()
function currentTunnelUrl()
{
return retry(20, function () {
$body = Request::get($this->tunnelsEndpoint)->send()->body;
@@ -36,7 +36,7 @@ public function currentTunnelUrl()
* @param array $tunnels
* @return string|null
*/
public function findHttpTunnelUrl(array $tunnels)
function findHttpTunnelUrl(array $tunnels)
{
foreach ($tunnels as $tunnel) {
if ($tunnel->proto === 'http') {