FILE: ./src/Curl/Curl.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
----------------------------------------------------------------------------------------------------------------------------------
1688 | WARNING | Method name "_getCurlErrorCodeConstants" should not be prefixed with an underscore to indicate visibility
| | (PSR2.Methods.MethodDeclaration.Underscore)
1707 | WARNING | Method name "_getCurlErrorCodeConstant" should not be prefixed with an underscore to indicate visibility
| | (PSR2.Methods.MethodDeclaration.Underscore)
1721 | WARNING | Method name "_getCurlOptionCodeConstants" should not be prefixed with an underscore to indicate visibility
| | (PSR2.Methods.MethodDeclaration.Underscore)
1745 | WARNING | Method name "_getEffectiveUrl" should not be prefixed with an underscore to indicate visibility
| | (PSR2.Methods.MethodDeclaration.Underscore)
1755 | WARNING | Method name "_getRfc2616" should not be prefixed with an underscore to indicate visibility
| | (PSR2.Methods.MethodDeclaration.Underscore)
1765 | WARNING | Method name "_getRfc6265" should not be prefixed with an underscore to indicate visibility
| | (PSR2.Methods.MethodDeclaration.Underscore)
1775 | WARNING | Method name "_getTotalTime" should not be prefixed with an underscore to indicate visibility
| | (PSR2.Methods.MethodDeclaration.Underscore)
----------------------------------------------------------------------------------------------------------------------------------
Error message:
++ phpcs_to_use=vendor/bin/phpcs
++ vendor/bin/phpcs --version
PHP_CodeSniffer version 3.7.2 (stable) by Squiz (http://www.squiz.net)
++ vendor/bin/phpcs --extensions=php '--ignore=*/vendor/*' --standard=tests/ruleset.xml -p -s .
W........................................................... 60 / 116 (52%)
........................................................ 116 / 116 (100%)
FILE: ...me/runner/work/php-curl-class/php-curl-class/examples/custom.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
1 | WARNING | IMPORTANT: Please be advised that for the most
| | reliable PHPCompatibility results, PHP 7.2 or higher
| | should be used. Support for lower versions will be
| | dropped in the foreseeable future. You are currently
| | using PHP 7.0.33-65+ubuntu22.04.1+deb.sury.org+1.
| | Please upgrade your PHP installation to version 7.2 or
| | higher.
| |
| | To disable this notice, add
| | --exclude=PHPCompatibility.Upgrade.LowPHP to your
| | command or add <exclude
| | name="PHPCompatibility.Upgrade.LowPHP.BelowRecommended_7_2"/>
| | to your custom ruleset.
| |
| | Thank you for using PHPCompatibility!
| | (PHPCompatibility.Upgrade.LowPHP.BelowRecommended_7_2)
----------------------------------------------------------------------
This change attempts to determine which underlying constants were
bitmasked together to reach the resulting value passed to curl_setopt()
using Curl::setOpt().