Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson committed Oct 20, 2024
1 parent c4e9ac4 commit e8c2fb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 3 additions & 6 deletions src/Resolvers/EntityListenerResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@

use Doctrine\ORM\Mapping\EntityListenerResolver as ResolverContract;
use Illuminate\Contracts\Container\Container;
use InvalidArgumentException;

use function gettype;
use function is_object;
use function sprintf;
use function trim;

// phpcs:disable
class EntityListenerResolver implements ResolverContract
{
/** @var object[] Map of class name to entity listener instances. */
Expand All @@ -33,7 +30,7 @@ public function clear(string|null $className = null): void
$this->instances = [];
}

public function resolve(string $className): object
public function resolve($className): object
{
$hasInstance = isset($this->instances[$className = trim($className, '\\')]);
if ($hasInstance) {
Expand All @@ -43,7 +40,7 @@ public function resolve(string $className): object
return $this->instances[$className] = $this->container->make($className);
}

public function register(object $object): void
public function register($object): void
{
$this->instances[$object::class] = $object;
}
Expand Down
1 change: 0 additions & 1 deletion tests/Feature/Notifications/DoctrineChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use LaravelDoctrine\ORM\Notifications\Notifiable;
use Mockery\Mock;
use PHPUnit\Framework\TestCase;
use RuntimeException;

class DoctrineChannelTest extends TestCase
{
Expand Down

0 comments on commit e8c2fb6

Please sign in to comment.