| Total Complexity | 1 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait WritesLogs |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * The list of parameters that must be hidden. |
||
| 16 | * |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | protected $excludeLoggingParameters = [ |
||
| 20 | 'password', 'password_confirmation', 'passwordConfirmation', |
||
| 21 | 'password_confirm', 'passwordConfirm', 'confirmation' |
||
| 22 | ]; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Send a message to logger. |
||
| 26 | * |
||
| 27 | * @param string|null $message |
||
| 28 | * @param array $context |
||
| 29 | * |
||
| 30 | * @return void |
||
| 31 | */ |
||
| 32 | protected function log(?string $message, array $context = []) |
||
| 39 | } |
||
| 40 | } |