1
0
mirror of https://github.com/flarum/core.git synced 2025-10-10 22:44:25 +02:00

PSR-2 fixes

This commit is contained in:
Toby Zerner
2015-07-05 21:46:57 +09:30
parent b792fd2efd
commit 01ec661c3f
11 changed files with 18 additions and 19 deletions

View File

@@ -27,7 +27,7 @@ abstract class Action
*/
protected function redirectTo($url)
{
$content = sprintf(<<<'HTML'
$content = sprintf('
<!DOCTYPE html>
<html>
<head>
@@ -39,9 +39,7 @@ abstract class Action
<body>
Redirecting to <a href="%1$s">%1$s</a>.
</body>
</html>
HTML
, htmlspecialchars($url, ENT_QUOTES, 'UTF-8'));
</html>', htmlspecialchars($url, ENT_QUOTES, 'UTF-8'));
$response = new RedirectResponse($url);
$response->getBody()->write($content);