diff --git a/src/Filterable.php b/src/Filterable.php index 34afa1b..fc18651 100644 --- a/src/Filterable.php +++ b/src/Filterable.php @@ -14,7 +14,7 @@ trait Filterable protected $filtered = []; /** - * Creates local scope to run the filter + * Creates local scope to run the filter. * * @param $query * @param array $input @@ -82,7 +82,7 @@ public function scopeSimplePaginateFilter($query, $perPage = null, $columns = [' } /** - * Returns ModelFilter class to be instantiated + * Returns ModelFilter class to be instantiated. * * @param null|string $filter * @return null|string diff --git a/src/ModelFilter.php b/src/ModelFilter.php index ffb0862..ac8040d 100644 --- a/src/ModelFilter.php +++ b/src/ModelFilter.php @@ -75,9 +75,9 @@ public function __call($method, $args) public function removeEmptyInput($input) { $filterableInput = []; - + foreach ($input as $key => $val) { - if($val !== '') { + if ($val !== '') { $filterableInput[$key] = $val; } } diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 7a94dea..22e1d43 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -6,7 +6,6 @@ class ServiceProvider extends LaravelServiceProvider { - /** * Indicates if loading of the provider is deferred. * @@ -14,7 +13,6 @@ class ServiceProvider extends LaravelServiceProvider */ protected $defer = true; - /** * Bootstrap any application services. *