From 633085d9327e2c0a49a82dc5a487109003b9f8a3 Mon Sep 17 00:00:00 2001 From: Nicolas Widart Date: Fri, 13 Oct 2017 14:17:11 +0200 Subject: [PATCH] CS: PSR1/2 --- ..._make_status_field_nullable_on_page_translations_table.php | 4 ++-- Modules/User/Console/RemoveModulePermissionsCommand.php | 1 - Modules/User/Tests/Permissions/PermissionsAdderTest.php | 2 +- Modules/User/helpers.php | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/Page/Database/Migrations/2017_10_13_103344_make_status_field_nullable_on_page_translations_table.php b/Modules/Page/Database/Migrations/2017_10_13_103344_make_status_field_nullable_on_page_translations_table.php index 5a6fe11a9..c0f2c0571 100644 --- a/Modules/Page/Database/Migrations/2017_10_13_103344_make_status_field_nullable_on_page_translations_table.php +++ b/Modules/Page/Database/Migrations/2017_10_13_103344_make_status_field_nullable_on_page_translations_table.php @@ -1,8 +1,8 @@ 'admin', 'permissions' => [ 'dashboard.index' => true, - ] + ], ]); $this->user->create([ 'email' => 'n.widart@gmail.com', diff --git a/Modules/User/helpers.php b/Modules/User/helpers.php index b77a9a50e..5d0725d0b 100644 --- a/Modules/User/helpers.php +++ b/Modules/User/helpers.php @@ -22,6 +22,7 @@ function current_permission_value_for_roles($model, $permissionTitle, $permissio if ($value === true) { return 1; } + return -1; } }