Skip to content

Commit c6b0afd

Browse files
atymicStyleCIBot
andauthored
Apply fixes from StyleCI (#15)
Co-authored-by: StyleCI Bot <bot@styleci.io>
1 parent 14dfceb commit c6b0afd

6 files changed

Lines changed: 23 additions & 35 deletions

File tree

src/Exceptions/MessageIsNotCompleteException.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ class MessageIsNotCompleteException extends IntercomException
1313
private $intercomMessage;
1414

1515
/**
16-
* @param IntercomMessage $intercomMessage
17-
* @param string $message
18-
* @param int $code
19-
* @param Throwable|null $previous
16+
* @param IntercomMessage $intercomMessage
17+
* @param string $message
18+
* @param int $code
19+
* @param Throwable|null $previous
2020
*/
2121
public function __construct(
2222
IntercomMessage $intercomMessage,

src/IntercomChannel.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class IntercomChannel
2121
private $client;
2222

2323
/**
24-
* @param IntercomClient $client
24+
* @param IntercomClient $client
2525
*/
2626
public function __construct(IntercomClient $client)
2727
{
@@ -31,15 +31,14 @@ public function __construct(IntercomClient $client)
3131
/**
3232
* Send the given notification via Intercom API.
3333
*
34-
* @param mixed $notifiable
35-
* @param Notification $notification
36-
*
34+
* @param mixed $notifiable
35+
* @param Notification $notification
3736
* @return void
3837
*
3938
* @throws MessageIsNotCompleteException When message is not filled correctly
40-
* @throws GuzzleException Other Guzzle uncatched exceptions
41-
* @throws HttpClientException Other HTTP uncatched exceptions
42-
* @throws RequestException When server responses with a bad HTTP code
39+
* @throws GuzzleException Other Guzzle uncatched exceptions
40+
* @throws HttpClientException Other HTTP uncatched exceptions
41+
* @throws RequestException When server responses with a bad HTTP code
4342
*
4443
* @see https://developers.intercom.com/intercom-api-reference/reference#admin-initiated-conversation
4544
*/
@@ -61,8 +60,8 @@ public function getClient(): IntercomClient
6160
}
6261

6362
/**
64-
* @param mixed $notifiable
65-
* @param Notification $notification
63+
* @param mixed $notifiable
64+
* @param Notification $notification
6665
*
6766
* @throws MessageIsNotCompleteException
6867
* @throws GuzzleException

src/IntercomMessage.php

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ class IntercomMessage
1313
public const TEMPLATE_PERSONAL = 'personal';
1414

1515
/**
16-
* @param string $body
17-
*
16+
* @param string $body
1817
* @return IntercomMessage
1918
*/
2019
public static function create(?string $body = null): self
@@ -28,7 +27,7 @@ public static function create(?string $body = null): self
2827
public $payload;
2928

3029
/**
31-
* @param string|null $body
30+
* @param string|null $body
3231
*/
3332
public function __construct(?string $body = null)
3433
{
@@ -40,8 +39,7 @@ public function __construct(?string $body = null)
4039
}
4140

4241
/**
43-
* @param string $body
44-
*
42+
* @param string $body
4543
* @return IntercomMessage
4644
*/
4745
public function body(string $body): self
@@ -72,8 +70,7 @@ public function inapp(): self
7270
}
7371

7472
/**
75-
* @param string $value
76-
*
73+
* @param string $value
7774
* @return IntercomMessage
7875
*/
7976
public function subject(string $value): self
@@ -104,8 +101,7 @@ public function personal(): self
104101
}
105102

106103
/**
107-
* @param string $adminId
108-
*
104+
* @param string $adminId
109105
* @return IntercomMessage
110106
*/
111107
public function from(string $adminId): self
@@ -119,8 +115,7 @@ public function from(string $adminId): self
119115
}
120116

121117
/**
122-
* @param array $value
123-
*
118+
* @param array $value
124119
* @return IntercomMessage
125120
*/
126121
public function to(array $value): self
@@ -131,8 +126,7 @@ public function to(array $value): self
131126
}
132127

133128
/**
134-
* @param string $id
135-
*
129+
* @param string $id
136130
* @return IntercomMessage
137131
*/
138132
public function toUserId(string $id): self
@@ -146,8 +140,7 @@ public function toUserId(string $id): self
146140
}
147141

148142
/**
149-
* @param string $email
150-
*
143+
* @param string $email
151144
* @return IntercomMessage
152145
*/
153146
public function toUserEmail(string $email): self
@@ -161,8 +154,7 @@ public function toUserEmail(string $email): self
161154
}
162155

163156
/**
164-
* @param string $id
165-
*
157+
* @param string $id
166158
* @return IntercomMessage
167159
*/
168160
public function toContactId(string $id): self

tests/Mocks/TestFakeApplication.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ public function terminating($callback)
2929
{
3030
}
3131

32-
33-
34-
3532
/**
3633
* {@inheritdoc}
3734
*/

tests/Mocks/TestNotifiable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class TestNotifiable
1414
private $to;
1515

1616
/**
17-
* @param bool|array $to
17+
* @param bool|array $to
1818
*/
1919
public function __construct($to = false)
2020
{

tests/Mocks/TestNotification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class TestNotification extends Notification
1313
private $intercomMessage;
1414

1515
/**
16-
* @param IntercomMessage $intercomMessage
16+
* @param IntercomMessage $intercomMessage
1717
*/
1818
public function __construct(IntercomMessage $intercomMessage)
1919
{

0 commit comments

Comments
 (0)