| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | 1 | public function toAwsSnsTopic($notifiable) |
|
| 44 | { |
||
| 45 | 1 | $config = 'audit.notification-driver.sns.topic_arn'; |
|
| 46 | |||
| 47 | 1 | $topicArn = Config::get($config); |
|
| 48 | |||
| 49 | 1 | throw_if( |
|
| 50 | 1 | empty($topicArn), |
|
| 51 | 1 | new AuditingException("config $config is not set.") |
|
| 52 | ); |
||
| 53 | |||
| 54 | 1 | return (new AwsSnsMessage()) |
|
| 55 | 1 | ->message(json_encode($this->auditData)) |
|
| 56 | 1 | ->topicArn($topicArn); |
|
| 57 | } |
||
| 58 | } |
||
| 59 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.