@@ -15,13 +15,13 @@ |
||
15 | 15 | |
16 | 16 | public function findAll(): QueryWorkerContract; |
17 | 17 | |
18 | - public function findOneBy(array $criteria, bool $abort = true): EntityContract; |
|
18 | + public function findOneBy(array $criteria, bool $abort = TRUE): EntityContract; |
|
19 | 19 | |
20 | - public function find($id, bool $abort = true): EntityContract; |
|
20 | + public function find($id, bool $abort = TRUE): EntityContract; |
|
21 | 21 | |
22 | 22 | public function findAllRemoved(): QueryWorkerContract; |
23 | 23 | |
24 | - public function findRemoved($id, bool $abort = true): EntityContract; |
|
24 | + public function findRemoved($id, bool $abort = TRUE): EntityContract; |
|
25 | 25 | |
26 | 26 | public function createEntity(): EntityContract; |
27 | 27 | } |
@@ -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 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | abort(404, 'Registro não encontrado'); |
47 | 47 | } |
48 | 48 | |
49 | - public function find($id, bool $abort = true): EntityContract |
|
49 | + public function find($id, bool $abort = TRUE): EntityContract |
|
50 | 50 | { |
51 | 51 | return $this->findOneBy(['id' => $id], $abort); |
52 | 52 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | ->andWhere('deletedAt', 'isnotnull'); |
60 | 60 | } |
61 | 61 | |
62 | - public function findRemoved($id, bool $abort = true): EntityContract |
|
62 | + public function findRemoved($id, bool $abort = TRUE): EntityContract |
|
63 | 63 | { |
64 | 64 | $entity = $this->findAllRemoved() |
65 | 65 | ->andWhere('id', '=', $id) |
@@ -16,7 +16,7 @@ |
||
16 | 16 | ->getClassMetadata(); |
17 | 17 | |
18 | 18 | foreach ($this->getFillable() as $key) { |
19 | - $metaDataKey = $classMetadata->hasField($key) ? $classMetadata->getFieldMapping($key) : null; |
|
19 | + $metaDataKey = $classMetadata->hasField($key) ? $classMetadata->getFieldMapping($key) : NULL; |
|
20 | 20 | |
21 | 21 | if ($this->checkOnyExceptInArray($key, $options)) { |
22 | 22 | if (is_object($this->$key)) { |