Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Fixing more standards issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wpillar committed Aug 23, 2015
1 parent b6712c6 commit cc64893
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions app/Http/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,12 @@
Route::group(['prefix' => 'moderation'], function () {
Route::group([
'prefix' => 'control-panel',
['middleware' => 'checkaccess', 'permissions' => 'canEnterMCP']],
function () {
['middleware' => 'checkaccess', 'permissions' => 'canEnterMCP']
], function () {
Route::get('/', ['as' => 'moderation.control_panel', 'uses' => 'ModerationController@controlPanel']);
Route::get('/queue', ['as' => 'moderation.control_panel.queue', 'uses' => 'ModerationController@queue']);
Route::get('/logs', ['as' => 'moderation.control_panel.logs', 'uses' => 'ModerationController@logs']);
}
);
});
});

Route::group(['prefix' => 'account', 'middleware' => 'checkaccess', 'permissions' => 'canEnterUCP'], function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@

use MyBB\Core\Content\ContentInterface;

abstract class AbstractReversibleModerationPresenter
extends AbstractModerationPresenter
implements ReversibleModerationPresenterInterface
abstract class AbstractReversibleModerationPresenter extends AbstractModerationPresenter implements
ReversibleModerationPresenterInterface
{
/**
* @return string
Expand Down
5 changes: 3 additions & 2 deletions app/Twig/Extensions/Moderation.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ public function getFunctions()
return [
new \Twig_SimpleFunction('is_reversible_moderation', [$this, 'isReversibleModeration']),
new \Twig_SimpleFunction('is_array_moderation', [$this, 'isArrayModeration']),
new \Twig_SimpleFunction('render_moderation_button', [
$this, 'renderModerationButton'],
new \Twig_SimpleFunction(
'render_moderation_button',
[$this, 'renderModerationButton'],
['is_safe' => ['html']]
),
];
Expand Down

0 comments on commit cc64893

Please sign in to comment.