Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:spatie/laravel-view-components
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Mar 3, 2020
2 parents bc398f7 + dad812d commit e8627c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ComponentFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Spatie\ViewComponents;

use Illuminate\Contracts\Support\Htmlable;
use Illuminate\Support\Str;
use InvalidArgumentException;
use Illuminate\Contracts\Support\Htmlable;

final class ComponentFinder
{
Expand Down Expand Up @@ -44,7 +44,7 @@ public function find(string $identifier): string
private function expandComponentClassPath(string $path): string
{
if (Str::contains($path, '::')) {
list($namespaceAlias, $path) = explode('::', $path, 2);
[$namespaceAlias, $path] = explode('::', $path, 2);
}

$namespace = isset($namespaceAlias)
Expand Down

0 comments on commit e8627c0

Please sign in to comment.