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 2
2
3
3
namespace Andreshg112 \LaravelAuditingNotifications ;
4
4
5
- use Illuminate \Support \Facades \Config ;
6
- use Lab123 \AwsSns \Messages \AwsSnsMessage ;
7
5
use Illuminate \Notifications \Notification ;
6
+ use Illuminate \Support \Facades \Config ;
8
7
use Lab123 \AwsSns \Channels \AwsSnsTopicChannel ;
8
+ use Lab123 \AwsSns \Messages \AwsSnsMessage ;
9
9
use OwenIt \Auditing \Exceptions \AuditingException ;
10
10
11
11
class AuditSns extends Notification
12
12
{
13
- /** @var array $auditData */
13
+ /** @var array */
14
14
protected $ auditData = null ;
15
15
16
16
/**
17
17
* Create a new notification instance.
18
18
*
19
- * @param array $auditData
19
+ * @param array $auditData
20
20
*/
21
21
public function __construct (array $ auditData )
22
22
{
Original file line number Diff line number Diff line change 2
2
3
3
namespace Andreshg112 \LaravelAuditingNotifications ;
4
4
5
+ use Illuminate \Notifications \Notifiable ;
5
6
use Illuminate \Support \Arr ;
6
7
use OwenIt \Auditing \Contracts \Audit ;
7
- use Illuminate \Notifications \Notifiable ;
8
8
use OwenIt \Auditing \Contracts \Auditable ;
9
9
use OwenIt \Auditing \Contracts \AuditDriver ;
10
10
use OwenIt \Auditing \Exceptions \AuditingException ;
@@ -14,7 +14,7 @@ class NotificationDriver implements AuditDriver
14
14
/**
15
15
* Perform an audit.
16
16
*
17
- * @param \OwenIt\Auditing\Contracts\Auditable|\Illuminate\Notifications\Notifiable $model
17
+ * @param \OwenIt\Auditing\Contracts\Auditable|\Illuminate\Notifications\Notifiable $model
18
18
* @return \OwenIt\Auditing\Contracts\Audit
19
19
*/
20
20
public function audit (Auditable $ model ): Audit
@@ -46,7 +46,7 @@ public function audit(Auditable $model): Audit
46
46
/**
47
47
* Remove older audits that go over the threshold.
48
48
*
49
- * @param \OwenIt\Auditing\Contracts\Auditable $model
49
+ * @param \OwenIt\Auditing\Contracts\Auditable $model
50
50
* @return bool
51
51
*/
52
52
public function prune (Auditable $ model ): bool
Original file line number Diff line number Diff line change 2
2
3
3
namespace Andreshg112 \LaravelAuditingNotifications \Tests ;
4
4
5
- use Orchestra \Testbench \TestCase ;
6
- use Illuminate \Support \Facades \Notification ;
7
5
use Andreshg112 \LaravelAuditingNotifications \AuditSnsQueue ;
6
+ use Illuminate \Support \Facades \Notification ;
7
+ use Orchestra \Testbench \TestCase ;
8
8
9
9
class AuditSnsQueueTest extends TestCase
10
10
{
Original file line number Diff line number Diff line change 2
2
3
3
namespace Andreshg112 \LaravelAuditingNotifications \Tests ;
4
4
5
- use Orchestra \ Testbench \ TestCase ;
5
+ use Andreshg112 \ LaravelAuditingNotifications \ AuditSns ;
6
6
use Illuminate \Support \Facades \Config ;
7
7
use Lab123 \AwsSns \Messages \AwsSnsMessage ;
8
- use Andreshg112 \ LaravelAuditingNotifications \ AuditSns ;
8
+ use Orchestra \ Testbench \ TestCase ;
9
9
10
10
class AuditSnsTest extends TestCase
11
11
{
Original file line number Diff line number Diff line change 2
2
3
3
namespace Andreshg112 \LaravelAuditingNotifications \Tests ;
4
4
5
- use Orchestra \Testbench \TestCase ;
6
- use OwenIt \Auditing \Models \Audit ;
7
5
use Andreshg112 \LaravelAuditingNotifications \AuditSns ;
8
6
use Andreshg112 \LaravelAuditingNotifications \NotificationDriver ;
7
+ use Orchestra \Testbench \TestCase ;
8
+ use OwenIt \Auditing \Models \Audit ;
9
9
10
10
class NotificationDriverTest extends TestCase
11
11
{
You can’t perform that action at this time.
0 commit comments