Helium lines in the solar EUV spectrum provide useful diagnostics of the solar atmosphere plasma. Helium is one of the few elements that exhibits strong emission lines formed in the lower transition region, and it is the second most abundant element in the Sun. However, the analysis of helium lines is complicated by their optical thickness and the unusual behavior of their intensities, with enhancements by a factor of up to 15 reported in the literature. Detailed study requires spatially and spectrally resolved observations in the EUV range, as well as sophisticated atomic modeling. The present work focuses on the application of the differential emission measure distribution to reproduce the observed fluxes of the He i and He ii lines observed by the Solar and Heliospheric Observatory (SOHO)/Coronal Diagnostic Spectrometer and Hinode/EIS spectrometers, using the latest atomic data. It is found that the comparison between observed and reconstructed intensities for He i resonance lines λλ537.03, 522.21, and 515.62 and the intercombination line λ591.41 does not show a real enhancement. By contrast, He i λ584.33, the first line of the resonance series, shows a depletion of a factor ~2, due to the opacity effect, as supported by non-LTE radiative transfer calculations. For single ionized helium lines 303.78 and 256.32 A, the enhancement factors obtained are higher and agree with those of previous work. The different behavior of He i and He ii lines suggests a mechanism that affects ionized helium only.