Update Swagger.php

Performance changes were introduced