I've been self-studying GLMs and I have some questions regarding the deviance in the context of GLMs. In Generalized Additive Models An Introduction with R, the author defines the deviance of a model as
$$ 2\big(l(\hat{\beta}_{max}) - l(\hat{\beta})\big)\phi $$
where $\phi$ is the scale parameter, $\hat{\beta}_{max}$ denotes the MLE of the saturated model and $\hat{\beta}$ is the MLE of the fitted model. However, I have also seen the deviance defined simply as
$$ 2\big(l(\hat{\beta}_{max}) - l(\hat{\beta})\big), $$
without the scale parameter, this is the definition used on Wikipedia. Which definition is the correct one? And what definition of deviance is used in the summary output in R for GLMs?
Any help is much appreciated!