From 02f3486bcb442447a346964477b9bad9158db270 Mon Sep 17 00:00:00 2001 From: Eric Tucker Date: Fri, 27 Jan 2017 12:49:01 -0800 Subject: [PATCH] Apply fixes from StyleCI (#24) --- src/Commands/MakeEloquentFilter.php | 2 +- src/Commands/Traits/NamespaceDetector.php | 2 -- tests/MakeEloquentFilterCommandTest.php | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Commands/MakeEloquentFilter.php b/src/Commands/MakeEloquentFilter.php index 42056b5..28bc872 100644 --- a/src/Commands/MakeEloquentFilter.php +++ b/src/Commands/MakeEloquentFilter.php @@ -112,7 +112,7 @@ public function makeClassName() $fqClass = config('eloquentfilter.namespace', 'App\\ModelFilters\\').$ns.$className; - if (substr($fqClass, - 6, 6) !== 'Filter') { + if (substr($fqClass, -6, 6) !== 'Filter') { $fqClass .= 'Filter'; } diff --git a/src/Commands/Traits/NamespaceDetector.php b/src/Commands/Traits/NamespaceDetector.php index d60b5d1..acacb3c 100644 --- a/src/Commands/Traits/NamespaceDetector.php +++ b/src/Commands/Traits/NamespaceDetector.php @@ -14,5 +14,3 @@ trait NamespaceDetector use \Illuminate\Console\AppNamespaceDetectorTrait; } } - - diff --git a/tests/MakeEloquentFilterCommandTest.php b/tests/MakeEloquentFilterCommandTest.php index e798072..6d73264 100644 --- a/tests/MakeEloquentFilterCommandTest.php +++ b/tests/MakeEloquentFilterCommandTest.php @@ -39,7 +39,7 @@ public function modelClassProvider() ['user-filter', 'UserFilter'], ['adminUser', 'AdminUserFilter'], ['admin-user', 'AdminUserFilter'], - ['admin-user\\user-filter', 'AdminUser\\UserFilter'] + ['admin-user\\user-filter', 'AdminUser\\UserFilter'], ]; } }