@@ -8,7 +8,7 @@ |
||
8 | 8 | */ |
9 | 9 | class Rule |
10 | 10 | { |
11 | - /** |
|
11 | + /** |
|
12 | 12 | * @Enum({"STORE", "UPDATE", "*"}) |
13 | 13 | */ |
14 | 14 | public $value = '*'; |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | public function findRemoved($id, bool $abort = true): ?EntityContract |
69 | 69 | { |
70 | 70 | $entity = $this->findAllRemoved() |
71 | - ->andWhere('id', '=', $id) |
|
72 | - ->getOneResult(); |
|
71 | + ->andWhere('id', '=', $id) |
|
72 | + ->getOneResult(); |
|
73 | 73 | |
74 | 74 | enableSoftDeleteableFilter(); |
75 | 75 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | public function remove(EntityContract $entity): EntityContract |
91 | 91 | { |
92 | 92 | $this->getEntityManager() |
93 | - ->remove($entity); |
|
93 | + ->remove($entity); |
|
94 | 94 | |
95 | 95 | return $entity; |
96 | 96 | } |
@@ -31,9 +31,9 @@ discard block |
||
31 | 31 | private function getPropertiesFillable(): array |
32 | 32 | { |
33 | 33 | $allProperties = $this->getRepository() |
34 | - ->getClassMetadata() |
|
35 | - ->getReflectionClass() |
|
36 | - ->getProperties(); |
|
34 | + ->getClassMetadata() |
|
35 | + ->getReflectionClass() |
|
36 | + ->getProperties(); |
|
37 | 37 | |
38 | 38 | return array_filter($allProperties, function ($property) { |
39 | 39 | $existAnnotationToArray = array_filter((new AnnotationReader())->getPropertyAnnotations($property), function ($annotation) { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | public function toArray(array $options = []): array |
48 | 48 | { |
49 | 49 | $classMetadata = $this->getRepository() |
50 | - ->getClassMetadata(); |
|
50 | + ->getClassMetadata(); |
|
51 | 51 | |
52 | 52 | $propertiesFillable = $this->getPropertiesFillable(); |
53 | 53 |
@@ -125,8 +125,8 @@ discard block |
||
125 | 125 | public function persist(): BdContracts\EntityContract |
126 | 126 | { |
127 | 127 | $this->getRepository() |
128 | - ->getEntityManager() |
|
129 | - ->persist($this); |
|
128 | + ->getEntityManager() |
|
129 | + ->persist($this); |
|
130 | 130 | |
131 | 131 | return $this; |
132 | 132 | } |
@@ -134,8 +134,8 @@ discard block |
||
134 | 134 | public function flush(): BdContracts\EntityContract |
135 | 135 | { |
136 | 136 | $this->getRepository() |
137 | - ->getEntityManager() |
|
138 | - ->flush($this); |
|
137 | + ->getEntityManager() |
|
138 | + ->flush($this); |
|
139 | 139 | |
140 | 140 | return $this; |
141 | 141 | } |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | public function remove(): BdContracts\EntityContract |
144 | 144 | { |
145 | 145 | $this->getRepository() |
146 | - ->remove($this); |
|
146 | + ->remove($this); |
|
147 | 147 | |
148 | 148 | return $this; |
149 | 149 | } |