Passed
Push — master ( e82c74...4a49ae )
by Sergey
02:01
created
dependencies.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
 use function Flextype\Component\I18n\__;
18 18
 
19 19
 // Add Admin Navigation
20
-flextype('registry')->set('plugins.admin.settings.navigation.extends.fieldsets', ['title' => __('form_admin_fieldsets'),'icon' => 'far fa-list-alt', 'link' => flextype('router')->pathFor('admin.fieldsets.index')]);
20
+flextype('registry')->set('plugins.admin.settings.navigation.extends.fieldsets', ['title' => __('form_admin_fieldsets'), 'icon' => 'far fa-list-alt', 'link' => flextype('router')->pathFor('admin.fieldsets.index')]);
21 21
 
22 22
 // Add FieldsetsController
23
-flextype()->container()['FieldsetsController'] = static function () {
23
+flextype()->container()['FieldsetsController'] = static function() {
24 24
     return new FieldsetsController();
25 25
 };
Please login to merge, or discard this patch.
routes/web.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,6 +17,6 @@
 block discarded – undo
17 17
     flextype()->post('/fieldsets/delete', 'FieldsetsController:deleteProcess')->setName('admin.fieldsets.deleteProcess');
18 18
 
19 19
 })->add(new AclIsUserLoggedInMiddleware(['redirect' => 'admin.accounts.login']))
20
-  ->add(new AclIsUserLoggedInRolesInMiddleware(['redirect' => (flextype()->getContainer()->acl->isUserLoggedIn() ? 'admin.accounts.no-access' : 'admin.accounts.login'),
21
-                                                     'roles' => 'admin']))
22
-  ->add('csrf');
20
+    ->add(new AclIsUserLoggedInRolesInMiddleware(['redirect' => (flextype()->getContainer()->acl->isUserLoggedIn() ? 'admin.accounts.no-access' : 'admin.accounts.login'),
21
+                                                        'roles' => 'admin']))
22
+    ->add('csrf');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use Flextype\Plugin\Acl\Middlewares\AclIsUserLoggedInMiddleware;
6 6
 use Flextype\Plugin\Acl\Middlewares\AclIsUserLoggedInRolesInMiddleware;
7 7
 
8
-flextype()->group('/' . $admin_route, function () {
8
+flextype()->group('/' . $admin_route, function() {
9 9
     flextype()->get('/fieldsets', 'FieldsetsController:index')->setName('admin.fieldsets.index');
10 10
     flextype()->get('/fieldsets/add', 'FieldsetsController:add')->setName('admin.fieldsets.add');
11 11
     flextype()->post('/fieldsets/add', 'FieldsetsController:addProcess')->setName('admin.fieldsets.addProcess');
Please login to merge, or discard this patch.
app/Controllers/FieldsetsController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
     /**
14 14
      * __construct
15 15
      */
16
-     public function __construct()
17
-     {
16
+        public function __construct()
17
+        {
18 18
 
19
-     }
19
+        }
20 20
 
21 21
     public function index($request, $response)
22 22
     {
Please login to merge, or discard this patch.