From 2fe6153a10cfc6dc7d9eaaf4d83da5d28db6e7e1 Mon Sep 17 00:00:00 2001 From: othillo Date: Mon, 19 Jun 2023 17:57:56 +0000 Subject: [PATCH] Apply coding standards --- src/MongoDBRepository.php | 15 --------------- src/MongoDBRepositoryFactory.php | 3 --- test/MongoDBRepositoryTest.php | 3 --- 3 files changed, 21 deletions(-) diff --git a/src/MongoDBRepository.php b/src/MongoDBRepository.php index d0ad2d4..5376961 100644 --- a/src/MongoDBRepository.php +++ b/src/MongoDBRepository.php @@ -47,9 +47,6 @@ public function __construct(Collection $collection, Serializer $serializer, stri $this->class = $class; } - /** - * {@inheritdoc} - */ public function save(Identifiable $model): void { Assert::isInstanceOf($model, $this->class); @@ -59,9 +56,6 @@ public function save(Identifiable $model): void $this->collection->insertOne($normalized); } - /** - * {@inheritdoc} - */ public function find($id): ?Identifiable { $document = $this->collection->findOne(['_id' => (string) $id]); @@ -69,9 +63,6 @@ public function find($id): ?Identifiable return $document ? $this->denormalizeIdentifiable($document) : null; } - /** - * {@inheritdoc} - */ public function findBy(array $fields): array { if (empty($fields)) { @@ -81,17 +72,11 @@ public function findBy(array $fields): array return $this->findModelsByQuery($fields); } - /** - * {@inheritdoc} - */ public function findAll(): array { return $this->findModelsByQuery(); } - /** - * {@inheritdoc} - */ public function remove($id): void { $this->collection->deleteOne(['_id' => (string) $id]); diff --git a/src/MongoDBRepositoryFactory.php b/src/MongoDBRepositoryFactory.php index bfe2ea1..6c3630c 100644 --- a/src/MongoDBRepositoryFactory.php +++ b/src/MongoDBRepositoryFactory.php @@ -39,9 +39,6 @@ public function __construct(Collection $collection, Serializer $serializer) $this->serializer = $serializer; } - /** - * {@inheritdoc} - */ public function create(string $name, string $class): Repository { return new MongoDBRepository($this->collection, $this->serializer, $class); diff --git a/test/MongoDBRepositoryTest.php b/test/MongoDBRepositoryTest.php index c3865f7..565af26 100644 --- a/test/MongoDBRepositoryTest.php +++ b/test/MongoDBRepositoryTest.php @@ -24,9 +24,6 @@ */ class MongoDBRepositoryTest extends RepositoryTestCase { - /** - * {@inheritdoc} - */ protected function createRepository(): Repository { $collection = (new Client())