* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ declare(strict_types=1); namespace PrestaShop\Module\Mbo\Helpers; class AddonsApiHelper { public static function addCustomHeaderIfNeeded(): array { $customHeaderKey = getenv('ADDONS_API_HEADER_KEY'); $customHeaderValue = getenv('ADDONS_API_HEADER_VALUE'); if (empty($customHeaderKey) || empty($customHeaderValue)) { return []; } return [$customHeaderKey => $customHeaderValue]; } }