Skip to content

Commit 4be08d5

Browse files
committed
ran pint
1 parent a7b516f commit 4be08d5

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

src/Events/NewMicrosoft365SignInEvent.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ class NewMicrosoft365SignInEvent
1212
use InteractsWithSockets;
1313
use SerializesModels;
1414

15-
public function __construct(public array $token) {}
15+
public function __construct(public array $token)
16+
{
17+
}
1618
}

src/Resources/Emails.php

+20-20
Original file line numberDiff line numberDiff line change
@@ -274,30 +274,30 @@ protected function prepareEmail(): array
274274

275275
$attachmentArray = [];
276276
foreach ($attachments as $file) {
277-
if (array_key_exists('name', $file) && array_key_exists('contentBytes', $file)) {
278-
$attachmentArray[] = [
279-
'@odata.type' => '#microsoft.graph.fileAttachment',
280-
'name' => $file['name'],
281-
'contentBytes' => $file['contentBytes'],
282-
];
283-
} else {
284-
$path = pathinfo($file);
285-
286-
$attachmentArray[] = [
287-
'@odata.type' => '#microsoft.graph.fileAttachment',
288-
'name' => $path['basename'],
289-
'contentType' => mime_content_type($file),
290-
'contentBytes' => base64_encode(file_get_contents($file)),
291-
];
292-
}
277+
if (array_key_exists('name', $file) && array_key_exists('contentBytes', $file)) {
278+
$attachmentArray[] = [
279+
'@odata.type' => '#microsoft.graph.fileAttachment',
280+
'name' => $file['name'],
281+
'contentBytes' => $file['contentBytes'],
282+
];
283+
} else {
284+
$path = pathinfo($file);
285+
286+
$attachmentArray[] = [
287+
'@odata.type' => '#microsoft.graph.fileAttachment',
288+
'name' => $path['basename'],
289+
'contentType' => mime_content_type($file),
290+
'contentBytes' => base64_encode(file_get_contents($file)),
291+
];
292+
}
293293
}
294294

295295
$singleValueExtendedPropertiesarray = [];
296296
foreach ($singleValueExtendedProperties as $value) {
297-
$singleValueExtendedPropertiesarray[] = [
298-
'id' => $value['id'],
299-
'value' => $value['value'],
300-
];
297+
$singleValueExtendedPropertiesarray[] = [
298+
'id' => $value['id'],
299+
'value' => $value['value'],
300+
];
301301
}
302302

303303
$envelope = [];

tests/MsGraphTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Illuminate\Http\RedirectResponse;
88
use Illuminate\Routing\Redirector;
99
use Illuminate\Support\Facades\Auth;
10-
use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
1110
use League\OAuth2\Client\Provider\GenericProvider;
1211
use League\OAuth2\Client\Token\AccessToken;
1312
use Mockery\MockInterface;

0 commit comments

Comments
 (0)