Skip to content

Commit 4301d66

Browse files
committed
Correções pontuais
1 parent 970b9bd commit 4301d66

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/OwenIt/Auditing/AuditingTrait.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,17 @@ public static function bootAuditingTrait()
5656
}
5757

5858
/**
59+
* Get list of logs
5960
* @return mixed
6061
*/
61-
public function log()
62+
public function logs()
6263
{
6364
return $this->morphMany(Log::class, 'owner');
6465
}
6566

6667
/**
67-
* Generates a list of the last $limit revisions made to any objects of the class it is being called from.
68+
* Generates a list of the last $limit revisions made to any objects
69+
* of the class it is being called from.
6870
*
6971
* @param int $limit
7072
* @param string $order
@@ -187,7 +189,6 @@ private function getUserId()
187189
*/
188190
private function changedAuditingFields()
189191
{
190-
191192
$changes_to_record = array();
192193
foreach ($this->dirtyData as $key => $value) {
193194
if ($this->isAuditing($key) && !is_array($value)) {

0 commit comments

Comments
 (0)