Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 248138d

Browse files
committed
Minor tweaks
1 parent 6dc347a commit 248138d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

components/http_foundation.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,11 @@ analysis purposes. Use the ``anonymize()`` method from the
353353
$anonymousIpv6 = IpUtils::anonymize($ipv6);
354354
// $anonymousIpv6 = '2a01:198:603:10::'
355355

356-
357-
Check if an IP belongs to a CIDR subnet
356+
Check If an IP Belongs to a CIDR Subnet
358357
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
359358

360-
If you need to know if an IP address is included in a CIDR subnet, you can
361-
use the ``checkIp`` method from the
362-
:class:`Symfony\\Component\\HttpFoundation\\IpUtils` to do that::
359+
If you need to know if an IP address is included in a CIDR subnet, you can use
360+
the ``checkIp()`` method from :class:`Symfony\\Component\\HttpFoundation\\IpUtils`::
363361

364362
use Symfony\Component\HttpFoundation\IpUtils;
365363

@@ -373,7 +371,6 @@ use the ``checkIp`` method from the
373371
$isIpInCIDRv6 = IpUtils::checkIp($ipv6, $CIDRv6);
374372
// $isIpInCIDRv6 = true
375373

376-
377374
Accessing other Data
378375
~~~~~~~~~~~~~~~~~~~~
379376

0 commit comments

Comments
 (0)