[WebProfilerBundle] Indicate forward controller based on response headers

by @ro0NL

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

$ curl http://fabbot.io/patch/symfony/symfony/22447/4bac9cc82010abf8d388f49ddc6d6345c5f1bb4a/cs.diff | patch -p0
diff -ru src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php
--- src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php	2017-09-12 19:11:09.510898020 +0000
+++ src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php	2017-09-12 19:11:11.170863578 +0000
@@ -135,7 +135,7 @@
     protected function file($file, $fileName = null, $disposition = ResponseHeaderBag::DISPOSITION_ATTACHMENT)
     {
         $response = new BinaryFileResponse($file);
-        $response->setContentDisposition($disposition, $fileName === null ? $response->getFile()->getFilename() : $fileName);
+        $response->setContentDisposition($disposition, null === $fileName ? $response->getFile()->getFilename() : $fileName);
 
         return $response;
     }

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
JSON Files Syntax

0
File Permissions