DependencyInjection/Source/EasyJWTLoaderSource.php
private function isEncryptionSupportEnabled(array $section)
    {
        if (true === empty($section['key_encryption_algorithms']) && true === empty($section['content_encryption_algorithms'])) {
            return false;
        }

        if (true === empty($section['key_encryption_algorithms']) || true === empty($section['content_encryption_algorithms'])) {
            throw new \LogicException('Both key encryption algorithms and content encryption algorithms must be set to enable the encryption support.');
        }

        return true;
    }
private function isEncryptionSupportEnabled(array $section)
    {
        if (true === empty($section['key_encryption_algorithms']) && true === empty($section['content_encryption_algorithms'])) {
            return false;
        }

        if (true === empty($section['key_encryption_algorithms']) || true === empty($section['content_encryption_algorithms'])) {
            throw new \LogicException('Both key encryption algorithms and content encryption algorithms must be set to enable the encryption support.');
        }

        return true;
    }
@param array $section

@return bool