Updated with php-cs-fixer and eloquent/tyhpoon type checking.