@@ -125,15 +125,16 @@ |
||
125 | 125 | |
126 | 126 | private function log() |
127 | 127 | { |
128 | - if (get_class($this->entity) == 'ControleOnline\Entity\Webapi\Usuario') |
|
129 | - $this->user = $this->entity; |
|
130 | - else |
|
131 | - $this->log[] = |
|
128 | + if (get_class($this->entity) == 'ControleOnline\Entity\Webapi\Usuario') { |
|
129 | + $this->user = $this->entity; |
|
130 | + } else { |
|
131 | + $this->log[] = |
|
132 | 132 | [ |
133 | 133 | 'action' => $this->action, |
134 | 134 | 'class' => str_replace('Proxies\\__CG__\\', '', get_class($this->entity)), |
135 | 135 | 'object' => $this->getObject($this->entity) |
136 | 136 | ]; |
137 | + } |
|
137 | 138 | } |
138 | 139 | |
139 | 140 | private function getObject($entity) |