Skip to content

Commit

Permalink
phpcs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
protitude committed Oct 16, 2024
1 parent 7fd991a commit 10d874f
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/Plugin/TeamsAlert.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,20 @@ public function getMessage() {
'type' => 'message',
'attachments' => [
[
'contentType' =>'application/vnd.microsoft.card.adaptive',
'contentUrl' => null,
'contentType' => 'application/vnd.microsoft.card.adaptive',
'contentUrl' => NULL,
'content' => [
'$schema' =>'http =>//adaptivecards.io/schemas/adaptive-card.json',
'type' =>'AdaptiveCard',
'version' =>'1.2',
'$schema' => 'http =>//adaptivecards.io/schemas/adaptive-card.json',
'type' => 'AdaptiveCard',
'version' => '1.2',
'body' => [
[
'type' => 'TextBlock',
'size' => 'Large',
'weight' => 'bolder',
'text' => "Environment: $env",
'style' => 'heading',
'wrap' => 'true'
'wrap' => 'true',
],
[
'type' => 'ColumnSet',
Expand All @@ -145,10 +145,10 @@ public function getMessage() {
'style' => 'person',
'url' => 'https://avatars.githubusercontent.com/u/105663422?v=4',
'altText' => 'Ralphie',
'size' => 'small'
]
'size' => 'small',
],
],
'width' => 'auto'
'width' => 'auto',
],
[
'type' => 'Column',
Expand All @@ -157,29 +157,29 @@ public function getMessage() {
'type' => 'TextBlock',
'weight' => 'bolder',
'text' => 'Ralphie McBuffaloPants',
'wrap' => true
'wrap' => TRUE,
],
[
'type' => 'TextBlock',
'spacing' => 'none',
'text' => 'Automation Engineer',
'isSubtle' => true,
'wrap' => true
]
'isSubtle' => TRUE,
'wrap' => TRUE,
],
],
'width' => 'stretch'
'width' => 'stretch',
],
],
],
[
'type' => 'TextBlock',
'text' => "$message",
'wrap' => true
]
]
]
]
]
'wrap' => TRUE,
],
],
],
],
],
];

return $message_array;
Expand Down

0 comments on commit 10d874f

Please sign in to comment.