Reformatted DOMPDF class to PSR-2's standards