| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function creating($model) |
||
| 17 | { |
||
| 18 | $lastRank = $model->getLastRank(); |
||
| 19 | |||
| 20 | $model->rank = ($lastRank) ? $lastRank->rank + 1 : 1; |
||
| 21 | |||
| 22 | if ($this->recordLogs()) |
||
| 23 | Log::info('[' . __METHOD__ . '()] -> User added to model rank ' . $lastRank->rank, [ |
||
| 24 | 'id' => \Auth::id() |
||
| 25 | ]); |
||
| 26 | |||
| 27 | return $model; |
||
| 28 | } |
||
| 29 | |||
| 60 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.