sensiolabs fixes

This commit is contained in:
flash 2016-08-05 12:49:46 +02:00
parent 99788b2539
commit 5ce8c55ebf
3 changed files with 4 additions and 4 deletions

View file

@ -219,10 +219,10 @@ class PostController extends Controller
if ($noAccess || $noDelete) {
if ($noDelete) {
$message = "You aren't allowed to delete posts in this topic!";
$redirect = Router::route('forums.post', $post->id);
$redirect = route('forums.post', $post->id);
} else {
$message = "This post doesn't exist or you don't have access to it!";
$redirect = Router::route('forums.index');
$redirect = route('forums.index');
}
return view('global/information', compact('message', 'redirect'));

View file

@ -11,7 +11,7 @@ namespace Sakura\Middleware;
* @package Sakura
* @author Julian van de Groep <me@flash.moe>
*/
interface Middleware
interface MiddlewareInterface
{
/**
* Runs the middleware task.

View file

@ -13,7 +13,7 @@ use Sakura\ActiveUser;
* @package Sakura
* @author Julian van de Groep <me@flash.moe>
*/
class UpdateLastOnline implements Middleware
class UpdateLastOnline implements MiddlewareInterface
{
/**
* Update the last online information for the active user.