Update AbstractWidget.php

Fixed scope