@@ -31,7 +31,7 @@ discard block |
||
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 |
||
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 |
||
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) |