From d6c0d9722ba5357fb06d86e18466b45e26a80d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Tue, 7 Jul 2020 21:22:56 +0300 Subject: [PATCH] Use PING_URL placeholder in the PHP example. --- templates/docs/php.html | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/templates/docs/php.html b/templates/docs/php.html index d975ff24..3cc64e1a 100644 --- a/templates/docs/php.html +++ b/templates/docs/php.html @@ -7,17 +7,13 @@

If you would like to setup timeout and retry options, as discussed in the reliability tips section, there is a curl package available that lets you do that easily:

-

```php startinline=True -use Curl\Curl;

-

$curl = new Curl(); -$curl->setRetry(20); -$curl->setTimeout(5); -$curl->get('PING_URL'); -```

-

:::php -use Curl\Curl; -$curl = new Curl(); -$curl->setRetry(20); -$curl->setTimeout(5); -$curl->get('PING_URL');

+
use Curl\Curl;
+
+$curl = new Curl();
+$curl->setRetry(20);
+$curl->setTimeout(5);
+$curl->get('PING_URL');
+
+ +

Note: this code never throws any exception.

\ No newline at end of file