From 02da19f32d82240b762c9ef3def2ca988197b36b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20HEYD?= Date: Wed, 6 Oct 2021 13:58:10 +0200 Subject: [PATCH] Fix StyleCI --- src/Console/Layout.php | 1 + src/resources/lang/en/permissions.php | 2 +- src/resources/lang/fr/permissions.php | 2 +- src/routes/boilerplate-email-editor.php | 2 +- tests/ConsoleTest.php | 2 +- tests/TestCase.php | 4 +--- tests/TestHelper.php | 4 ++-- 7 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/Console/Layout.php b/src/Console/Layout.php index 91980de..cde2612 100644 --- a/src/Console/Layout.php +++ b/src/Console/Layout.php @@ -50,6 +50,7 @@ private function remove() if ($this->confirm('Delete '.$this->storage->path($name).' layout?')) { $this->storage->delete($name); + return $this->info('Layout '.$this->storage->path($name).' has been deleted'); } } diff --git a/src/resources/lang/en/permissions.php b/src/resources/lang/en/permissions.php index 8d5b407..ebd97ee 100644 --- a/src/resources/lang/en/permissions.php +++ b/src/resources/lang/en/permissions.php @@ -1,7 +1,7 @@ 'E-mails', + 'category' => 'E-mails', 'email_edition' => [ 'display_name' => 'Email edition', 'description' => 'User can edit e-mail subject, content and sender', diff --git a/src/resources/lang/fr/permissions.php b/src/resources/lang/fr/permissions.php index cef7cf4..c255b34 100644 --- a/src/resources/lang/fr/permissions.php +++ b/src/resources/lang/fr/permissions.php @@ -1,7 +1,7 @@ 'E-mails', + 'category' => 'E-mails', 'email_edition' => [ 'display_name' => 'Édition des e-mails', 'description' => "Permet l'édition du sujet, de l'expéditeur et du contenu des e-mails", diff --git a/src/routes/boilerplate-email-editor.php b/src/routes/boilerplate-email-editor.php index 5b2d57b..9d002a3 100755 --- a/src/routes/boilerplate-email-editor.php +++ b/src/routes/boilerplate-email-editor.php @@ -7,7 +7,7 @@ 'web', 'boilerplatelocale', 'boilerplateauth', - 'ability:admin,emaileditor_email_edition,emaileditor_email_dev' + 'ability:admin,emaileditor_email_edition,emaileditor_email_dev', ], 'as' => 'emaileditor.', 'namespace' => '\Sebastienheyd\BoilerplateEmailEditor\Controllers', diff --git a/tests/ConsoleTest.php b/tests/ConsoleTest.php index 9c19450..d29a674 100644 --- a/tests/ConsoleTest.php +++ b/tests/ConsoleTest.php @@ -38,4 +38,4 @@ public function testEmailLayoutDelete() ->expectsOutput('Layout '.self::TEST_APP.'/resources/views/email-layouts/test.blade.php does not exists') ->assertExitCode(0); } -} \ No newline at end of file +} diff --git a/tests/TestCase.php b/tests/TestCase.php index 3f27632..3f2cb19 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,8 +2,6 @@ namespace Sebastienheyd\BoilerplateEmailEditor\Tests; -use Collective\Html\FormFacade; -use Laratrust\LaratrustFacade; use Orchestra\Testbench\TestCase as TestBench; use Sebastienheyd\Boilerplate\BoilerplateServiceProvider; use Sebastienheyd\BoilerplateEmailEditor\ServiceProvider; @@ -41,4 +39,4 @@ protected function getPackageProviders($app) ServiceProvider::class, ]; } -} \ No newline at end of file +} diff --git a/tests/TestHelper.php b/tests/TestHelper.php index fd20dac..12771f1 100644 --- a/tests/TestHelper.php +++ b/tests/TestHelper.php @@ -13,7 +13,7 @@ trait TestHelper */ private static function setUpLocalTestbench() { - if (! file_exists(self::TEST_APP_TEMPLATE)) { + if (!file_exists(self::TEST_APP_TEMPLATE)) { fwrite(STDOUT, 'Setting up test environment for first use.'.PHP_EOL); $files = new Filesystem(); $files->makeDirectory(self::TEST_APP_TEMPLATE, 0755, true); @@ -29,7 +29,7 @@ private static function setUpLocalTestbench() // Pre-install illuminate/support $composer['require'] = [ 'laravel/framework' => '^7.0|^8.0', - 'laravel/sanctum' => '^7.0|^8.0', + 'laravel/sanctum' => '^7.0|^8.0', ]; $composer['require-dev'] = new \StdClass();