Completed
Pull Request — master (#34)
by Raí
05:45
created
Bludata/Doctrine/Common/Contracts/RepositoryContract.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Bludata/Doctrine/ORM/Repositories/BaseRepository.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 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
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
Bludata/Doctrine/ORM/Traits/ToArrayTrait.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.