From ba31dde97e943acce5383b66dceefc86f0364fc5 Mon Sep 17 00:00:00 2001 From: sebdesign Date: Tue, 2 Oct 2018 07:59:12 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Callback/ContainerAwareCallbackFactory.php | 1 - src/Commands/Debug.php | 2 +- tests/ArticlePolicy.php | 4 ++-- tests/Callback/ContainerAwareCallbackFactoryTest.php | 1 - tests/Callback/GateCallbackTest.php | 2 -- 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Callback/ContainerAwareCallbackFactory.php b/src/Callback/ContainerAwareCallbackFactory.php index 1d0ec29..e0a5974 100644 --- a/src/Callback/ContainerAwareCallbackFactory.php +++ b/src/Callback/ContainerAwareCallbackFactory.php @@ -13,7 +13,6 @@ use SM\SMException; use SM\Callback\CallbackFactory; -use Sebdesign\SM\Callback\GateCallback; use Illuminate\Contracts\Auth\Access\Gate; use Illuminate\Contracts\Container\Container as ContainerInterface; diff --git a/src/Commands/Debug.php b/src/Commands/Debug.php index e5dec6d..bb50bbb 100644 --- a/src/Commands/Debug.php +++ b/src/Commands/Debug.php @@ -146,7 +146,7 @@ protected function printCallbacks(array $allCallbacks) ]; } - $this->table([ucfirst($position) . ' Callbacks', 'Satisfies', 'Do', 'Args'], $rows); + $this->table([ucfirst($position).' Callbacks', 'Satisfies', 'Do', 'Args'], $rows); } } diff --git a/tests/ArticlePolicy.php b/tests/ArticlePolicy.php index e2cec08..6cbdbaf 100644 --- a/tests/ArticlePolicy.php +++ b/tests/ArticlePolicy.php @@ -4,8 +4,8 @@ use Illuminate\Foundation\Auth\User; -class ArticlePolicy { - +class ArticlePolicy +{ public function submitChanges(User $user, Article $article, $string) { return $string === 'foo'; diff --git a/tests/Callback/ContainerAwareCallbackFactoryTest.php b/tests/Callback/ContainerAwareCallbackFactoryTest.php index ce7d931..21b4406 100644 --- a/tests/Callback/ContainerAwareCallbackFactoryTest.php +++ b/tests/Callback/ContainerAwareCallbackFactoryTest.php @@ -5,7 +5,6 @@ use Sebdesign\SM\Test\TestCase; use Sebdesign\SM\Callback\GateCallback; use SM\Callback\CallbackFactoryInterface; -use Illuminate\Contracts\Auth\Access\Gate; use Sebdesign\SM\Callback\ContainerAwareCallback; use Sebdesign\SM\Callback\ContainerAwareCallbackFactory; diff --git a/tests/Callback/GateCallbackTest.php b/tests/Callback/GateCallbackTest.php index 12a43bb..2aaa29b 100644 --- a/tests/Callback/GateCallbackTest.php +++ b/tests/Callback/GateCallbackTest.php @@ -2,7 +2,6 @@ namespace Sebdesign\SM\Test\Callback; -use SM\Event\TransitionEvent; use Sebdesign\SM\Test\Article; use Sebdesign\SM\Test\TestCase; use SM\Factory\FactoryInterface; @@ -10,7 +9,6 @@ use Illuminate\Support\Facades\Gate; use Sebdesign\SM\Test\ArticlePolicy; use Sebdesign\SM\Callback\GateCallback; -use Sebdesign\SM\Callback\ContainerAwareCallback; use Illuminate\Contracts\Auth\Access\Gate as GateContract; class GateCallbackTest extends TestCase