Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 13, 2019
1 parent 2ba1b8f commit b235013
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Illuminate/Foundation/Events/DiscoverEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@ protected static function getListenerEvents($listeners, $basePath)
protected static function classFromFile(SplFileInfo $file, $basePath)
{
$class = trim(Str::replaceFirst($basePath, '', $file->getRealPath()), DIRECTORY_SEPARATOR);
$appPath = ucfirst(basename(app()->path()));

return str_replace(
[DIRECTORY_SEPARATOR, "{$appPath}\\"],
[DIRECTORY_SEPARATOR, ucfirst(basename(app()->path()))."\\"],
['\\', app()->getNamespace()],
ucfirst(Str::replaceLast('.php', '', $class))
);
Expand Down

0 comments on commit b235013

Please sign in to comment.