Skip to content

Commit 4b2162f

Browse files
committed
styleci fixes
1 parent ece469d commit 4b2162f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

resources/lang/en/messages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
'browser' => 'Browser',
2424
'platform' => 'Platform',
2525
'device' => 'Device',
26-
'ignore' => 'If this was you, you can ignore this alert. If you suspect any suspicious activity on your account, please change your password.'
26+
'ignore' => 'If this was you, you can ignore this alert. If you suspect any suspicious activity on your account, please change your password.',
2727
];

src/Notifications/NewDeviceAlert.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,11 @@ class NewDeviceAlert extends Notification implements ShouldQueue
4343

4444
/**
4545
* User's device type retrived from the user agent.
46-
*
4746
*/
4847
public $deviceType;
4948

5049
/**
5150
* User's device name (only for mobile devices).
52-
*
5351
*/
5452
public $deviceName = '';
5553

@@ -73,11 +71,9 @@ public function __construct(AuthLogger $authLogger)
7371
if ($this->agent->isMobile()) {
7472
$this->deviceType = 'mobile';
7573
$this->deviceName = $this->agent->device();
76-
}
77-
elseif ($this->agent->isTablet()) {
74+
} elseif ($this->agent->isTablet()) {
7875
$this->deviceType = 'tablet';
79-
}
80-
elseif ($this->agent->isDesktop()) {
76+
} elseif ($this->agent->isDesktop()) {
8177
$this->deviceType = 'desktop';
8278
}
8379
}
@@ -112,7 +108,7 @@ public function toMail($notifiable)
112108
'platform' => $this->platform,
113109
'platformVersion' => $this->agent->version($this->platform),
114110
'deviceType' => $this->deviceType,
115-
'deviceName' => $this->deviceName
111+
'deviceName' => $this->deviceName,
116112
]);
117113
}
118114

0 commit comments

Comments
 (0)