Completed
Push — master ( 881fdc...9aed43 )
by Philip
16:17
created
src/Service/RepositoryUuidCrudService.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Dontdrinkandroot\Service;
4 4
 
5
-use Dontdrinkandroot\Entity\UuidHelper;
6 5
 use Dontdrinkandroot\Repository\CrudRepositoryInterface;
7 6
 use Dontdrinkandroot\Repository\UuidCrudRepositoryInterface;
8 7
 use Dontdrinkandroot\Utils\EntityUtils;
Please login to merge, or discard this patch.
src/Repository/CrudRepositoryInterface.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -14,12 +14,24 @@  discard block
 block discarded – undo
14 14
 
15 15
     public function merge(object $entity, bool $flush = false): object;
16 16
 
17
+    /**
18
+     * @return void
19
+     */
17 20
     public function flush(object $entity = null): void;
18 21
 
22
+    /**
23
+     * @return void
24
+     */
19 25
     public function detach(object $entity): void;
20 26
 
27
+    /**
28
+     * @return void
29
+     */
21 30
     public function removeById($id, bool $flush = false): void;
22 31
 
32
+    /**
33
+     * @return void
34
+     */
23 35
     public function remove(object $entity, bool $flush = false);
24 36
 
25 37
     /**
@@ -27,6 +39,7 @@  discard block
 block discarded – undo
27 39
      *
28 40
      * @param bool $flush
29 41
      * @param bool $iterate Iterate over each entity so all triggers are called.
42
+     * @return void
30 43
      */
31 44
     public function removeAll(bool $flush = false, bool $iterate = true);
32 45
 
Please login to merge, or discard this patch.
src/Repository/UuidCrudRepository.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@
 block discarded – undo
16 16
         return $query->getOneOrNullResult();
17 17
     }
18 18
 
19
+    /**
20
+     * @param string $uuid
21
+     */
19 22
     protected function createFindByUuidQuery($uuid): Query
20 23
     {
21 24
         $queryBuilder = $this->createQueryBuilder('entity');
Please login to merge, or discard this patch.
src/Utils/EntityUtils.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Dontdrinkandroot\Utils;
4 4
 
5 5
 use Dontdrinkandroot\Entity\EntityInterface;
6
-use Dontdrinkandroot\Entity\UuidHelper;
7 6
 use Ramsey\Uuid\Uuid;
8 7
 
9 8
 /**
Please login to merge, or discard this patch.