mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 01:00:09 +01:00
remove superstition
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user