Your project should not use deprecated PHP features
- Read doc
- Productivity
- Major
More information: https://insight.symfony.com/what-we-analyse/php.use_deprecated_function
- $result = curl_exec($curl);
- if (empty($result)) {
- $info = curl_getinfo($curl);
- curl_close($curl);
- } else {
- $info = 'error';
- }
- return $info;
Mutable DateTime should be avoided in favor of DateTimeImmutable
- Read doc
- Reliability
- Minor
More information: https://insight.symfony.com/what-we-analyse/php.prefer_date_time_immutable
- </div>
- <?php
- if ((ACCOUNT_DOB == 'true' && ($CLICSHOPPING_Customer->getCustomersGroupID() == 0)) || (ACCOUNT_DOB_PRO == 'true' && ($CLICSHOPPING_Customer->getCustomersGroupID() != 0))) {
- if (!empty($customers_dob)) {
- $customers_dob = DateTime::toShort($customers_dob);
- $dateObj = new \DateTime($customers_dob);
- $customers_dob = $dateObj->format('Y-m-d');
- } else {
- $customers_dob = null;
- }
- ?>