Skip to content

Commit

Permalink
Apply fixes from StyleCI (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tucker-Eric authored Jan 27, 2017
1 parent 202ef7d commit 02f3486
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Commands/MakeEloquentFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down
2 changes: 0 additions & 2 deletions src/Commands/Traits/NamespaceDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ trait NamespaceDetector
use \Illuminate\Console\AppNamespaceDetectorTrait;
}
}


2 changes: 1 addition & 1 deletion tests/MakeEloquentFilterCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
];
}
}

0 comments on commit 02f3486

Please sign in to comment.