Completed
Push — master ( d03ce1...a8196e )
by Raí
12s
created
Bludata/Doctrine/ORM/Repositories/BaseRepository.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         return $this->createQueryWorker();
32 32
     }
33 33
 
34
-    public function findOneBy(array $criteria, bool $abort = true): ?EntityContract
34
+    public function findOneBy(array $criteria, bool $abort = TRUE): ?EntityContract
35 35
     {
36 36
         $findAll = $this->findAll();
37 37
 
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
             abort(404, 'Registro não encontrado');
50 50
         }
51 51
 
52
-        return null;
52
+        return NULL;
53 53
     }
54 54
 
55
-    public function find($id, bool $abort = true): ?EntityContract
55
+    public function find($id, bool $abort = TRUE): ?EntityContract
56 56
     {
57 57
         return $this->findOneBy(['id' => $id], $abort);
58 58
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                     ->andWhere('deletedAt', 'isnotnull');
66 66
     }
67 67
 
68
-    public function findRemoved($id, bool $abort = true): ?EntityContract
68
+    public function findRemoved($id, bool $abort = TRUE): ?EntityContract
69 69
     {
70 70
         $entity = $this->findAllRemoved()
71 71
                         ->andWhere('id', '=', $id)
Please login to merge, or discard this patch.