Scrutinizer Auto-Fixes

This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/bangpound/LegacyPhpHttpKernel/inspections/f38bf499-723b-40a3-8360-bd591e7c6b0c

Enabled analysis tools:
 - PHP Analyzer
 - PHP PDepend
 - PHP Similarity Analyzer
Merge pull request #1 from bangpound/scrutinizer-patch-1

Scrutinizer Auto-Fixes
Merge branch 'release/1.1.0'
rename functions and avoid overriding private functions.
mode shutdown event on view event.
give output buffer listener an injected response.
if the status is OK there may be headers to capture.
remove request.
code style.
extract responses from container.
remove duplicate code.
Scrutinizer Auto-Fixes

This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/bangpound/LegacyPhpHttpKernel/inspections/e2256766-fbc9-4997-86bd-b43bb1556086

Enabled analysis tools:
 - PHP Analyzer
 - PHP PDepend
 - PHP Similarity Analyzer
Merge pull request #2 from bangpound/scrutinizer-patch-1

Scrutinizer Auto-Fixes
remove containeraware.
only attach buffer if ob_start returns true.
Merge branch 'master' into develop