This repository was archived by the owner on Sep 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed
Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 22
33namespace Andreshg112 \LaravelAuditingNotifications ;
44
5- use Illuminate \Support \Facades \Config ;
6- use Lab123 \AwsSns \Messages \AwsSnsMessage ;
75use Illuminate \Notifications \Notification ;
6+ use Illuminate \Support \Facades \Config ;
87use Lab123 \AwsSns \Channels \AwsSnsTopicChannel ;
8+ use Lab123 \AwsSns \Messages \AwsSnsMessage ;
99use OwenIt \Auditing \Exceptions \AuditingException ;
1010
1111class AuditSns extends Notification
1212{
13- /** @var array $auditData */
13+ /** @var array */
1414 protected $ auditData = null ;
1515
1616 /**
1717 * Create a new notification instance.
1818 *
19- * @param array $auditData
19+ * @param array $auditData
2020 */
2121 public function __construct (array $ auditData )
2222 {
Original file line number Diff line number Diff line change 22
33namespace Andreshg112 \LaravelAuditingNotifications ;
44
5+ use Illuminate \Notifications \Notifiable ;
56use Illuminate \Support \Arr ;
67use OwenIt \Auditing \Contracts \Audit ;
7- use Illuminate \Notifications \Notifiable ;
88use OwenIt \Auditing \Contracts \Auditable ;
99use OwenIt \Auditing \Contracts \AuditDriver ;
1010use OwenIt \Auditing \Exceptions \AuditingException ;
@@ -14,7 +14,7 @@ class NotificationDriver implements AuditDriver
1414 /**
1515 * Perform an audit.
1616 *
17- * @param \OwenIt\Auditing\Contracts\Auditable|\Illuminate\Notifications\Notifiable $model
17+ * @param \OwenIt\Auditing\Contracts\Auditable|\Illuminate\Notifications\Notifiable $model
1818 * @return \OwenIt\Auditing\Contracts\Audit
1919 */
2020 public function audit (Auditable $ model ): Audit
@@ -46,7 +46,7 @@ public function audit(Auditable $model): Audit
4646 /**
4747 * Remove older audits that go over the threshold.
4848 *
49- * @param \OwenIt\Auditing\Contracts\Auditable $model
49+ * @param \OwenIt\Auditing\Contracts\Auditable $model
5050 * @return bool
5151 */
5252 public function prune (Auditable $ model ): bool
Original file line number Diff line number Diff line change 22
33namespace Andreshg112 \LaravelAuditingNotifications \Tests ;
44
5- use Orchestra \Testbench \TestCase ;
6- use Illuminate \Support \Facades \Notification ;
75use Andreshg112 \LaravelAuditingNotifications \AuditSnsQueue ;
6+ use Illuminate \Support \Facades \Notification ;
7+ use Orchestra \Testbench \TestCase ;
88
99class AuditSnsQueueTest extends TestCase
1010{
Original file line number Diff line number Diff line change 22
33namespace Andreshg112 \LaravelAuditingNotifications \Tests ;
44
5- use Orchestra \ Testbench \ TestCase ;
5+ use Andreshg112 \ LaravelAuditingNotifications \ AuditSns ;
66use Illuminate \Support \Facades \Config ;
77use Lab123 \AwsSns \Messages \AwsSnsMessage ;
8- use Andreshg112 \ LaravelAuditingNotifications \ AuditSns ;
8+ use Orchestra \ Testbench \ TestCase ;
99
1010class AuditSnsTest extends TestCase
1111{
Original file line number Diff line number Diff line change 22
33namespace Andreshg112 \LaravelAuditingNotifications \Tests ;
44
5- use Orchestra \Testbench \TestCase ;
6- use OwenIt \Auditing \Models \Audit ;
75use Andreshg112 \LaravelAuditingNotifications \AuditSns ;
86use Andreshg112 \LaravelAuditingNotifications \NotificationDriver ;
7+ use Orchestra \Testbench \TestCase ;
8+ use OwenIt \Auditing \Models \Audit ;
99
1010class NotificationDriverTest extends TestCase
1111{
You can’t perform that action at this time.
0 commit comments