UnusedLocalVariable fix for compact handling in Symfony2