Skip to content

Commit dad1cbd

Browse files
Merge pull request owen-it#560 from koernchen02/master
Substitute str_replace_last with the respective Str helper
2 parents 38de27e + e313277 commit dad1cbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/InstallCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace OwenIt\Auditing\Console;
44

5-
use Illuminate\Support\Str;
65
use Illuminate\Console\Command;
76
use Illuminate\Console\DetectsApplicationNamespace;
7+
use Illuminate\Support\Str;
88

99
class InstallCommand extends Command
1010
{
@@ -43,7 +43,7 @@ public function handle()
4343
*/
4444
protected function registerAuditingServiceProvider()
4545
{
46-
$namespace = str_replace_last('\\', '', $this->getAppNamespace());
46+
$namespace = Str::replaceLast('\\', '', $this->getAppNamespace());
4747

4848
$appConfig = file_get_contents(config_path('app.php'));
4949

0 commit comments

Comments
 (0)