Skip to content

Commit e03f429

Browse files
author
Kate Simozhenko
committed
fix code style
1 parent 5b8c771 commit e03f429

File tree

3 files changed

+2
-58
lines changed

3 files changed

+2
-58
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929

3030
- run: sed -i 's/525568/16777471/' vendor/kwn/php-rdkafka-stubs/stubs/constants.php
3131

32+
- run: cd docker && docker build --rm --force-rm --no-cache --pull --tag "enqueue/dev:latest" -f Dockerfile .
3233
- run: docker run --workdir="/mqdev" -v "`pwd`:/mqdev" --rm enqueue/dev:latest php -d memory_limit=1024M bin/phpstan analyse -l 1 -c phpstan.neon --error-format=github -- ${{ env.GIT_DIFF_FILTERED }}
3334
if: env.GIT_DIFF_FILTERED
3435

pkg/sns/SnsDestination.php

-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ public function getDeliveryPolicy(): ?int
7777
* You can't change it for an existing topic. When you set this attribute, you must provide aMessageGroupId
7878
* explicitly.
7979
* For more information, see https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
80-
*
81-
* @param bool $enable
8280
*/
8381
public function setFifoTopic(bool $enable): void
8482
{

pkg/sns/SnsMessage.php

+1-56
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,6 @@ class SnsMessage implements Message
5858
* See AWS documentation for message attribute structure.
5959
*
6060
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-sns-2010-03-31.html#shape-messageattributevalue
61-
*
62-
* @param string $body
63-
* @param array $properties
64-
* @param array $headers
65-
* @param array|null $messageAttributes
66-
* @param string|null $messageStructure
67-
* @param string|null $phoneNumber
68-
* @param string|null $subject
69-
* @param string|null $targetArn
7061
*/
7162
public function __construct(
7263
string $body = '',
@@ -89,89 +80,58 @@ public function __construct(
8980
$this->redelivered = false;
9081
}
9182

92-
/**
93-
* @return string|null
94-
*/
9583
public function getSnsMessageId(): ?string
9684
{
9785
return $this->snsMessageId;
9886
}
9987

100-
/**
101-
* @param string|null $snsMessageId
102-
*/
10388
public function setSnsMessageId(?string $snsMessageId): void
10489
{
10590
$this->snsMessageId = $snsMessageId;
10691
}
10792

108-
/**
109-
* @return string|null
110-
*/
11193
public function getMessageStructure(): ?string
11294
{
11395
return $this->messageStructure;
11496
}
11597

116-
/**
117-
* @param string|null $messageStructure
118-
*/
11998
public function setMessageStructure(?string $messageStructure): void
12099
{
121100
$this->messageStructure = $messageStructure;
122101
}
123102

124-
/**
125-
* @return string|null
126-
*/
127103
public function getPhoneNumber(): ?string
128104
{
129105
return $this->phoneNumber;
130106
}
131107

132-
/**
133-
* @param string|null $phoneNumber
134-
*/
135108
public function setPhoneNumber(?string $phoneNumber): void
136109
{
137110
$this->phoneNumber = $phoneNumber;
138111
}
139112

140-
/**
141-
* @return string|null
142-
*/
143113
public function getSubject(): ?string
144114
{
145115
return $this->subject;
146116
}
147117

148-
/**
149-
* @param string|null $subject
150-
*/
151118
public function setSubject(?string $subject): void
152119
{
153120
$this->subject = $subject;
154121
}
155122

156-
/**
157-
* @return array|null
158-
*/
159123
public function getMessageAttributes(): ?array
160124
{
161125
return $this->messageAttributes;
162126
}
163127

164-
/**
165-
* @param array|null $messageAttributes
166-
*/
167128
public function setMessageAttributes(?array $messageAttributes): void
168129
{
169130
$this->messageAttributes = $messageAttributes;
170131
}
171132

172133
/**
173-
* @param string $name
174-
* @param null $default
134+
* @param null $default
175135
*
176136
* @return array|null
177137
*/
@@ -187,9 +147,6 @@ public function getAttribute(string $name, $default = null)
187147
* 'DataType' => '<string>', // REQUIRED
188148
* 'StringValue' => '<string>',
189149
* ].
190-
*
191-
* @param string $name
192-
* @param array|null $attribute
193150
*/
194151
public function setAttribute(string $name, ?array $attribute): void
195152
{
@@ -201,7 +158,6 @@ public function setAttribute(string $name, ?array $attribute): void
201158
}
202159

203160
/**
204-
* @param string $name
205161
* @param string $dataType String, String.Array, Number, or Binary
206162
* @param string|resource|StreamInterface $value
207163
*/
@@ -215,17 +171,11 @@ public function addAttribute(string $name, string $dataType, $value): void
215171
];
216172
}
217173

218-
/**
219-
* @return string|null
220-
*/
221174
public function getTargetArn(): ?string
222175
{
223176
return $this->targetArn;
224177
}
225178

226-
/**
227-
* @param string|null $targetArn
228-
*/
229179
public function setTargetArn(?string $targetArn): void
230180
{
231181
$this->targetArn = $targetArn;
@@ -241,17 +191,12 @@ public function setTargetArn(?string $targetArn): void
241191
* data for multiple users). In this scenario, multiple readers can process the queue, but the session data
242192
* of each user is processed in a FIFO fashion.
243193
* For more information, see: https://docs.aws.amazon.com/sns/latest/dg/fifo-message-grouping.html
244-
*
245-
* @param string|null $id
246194
*/
247195
public function setMessageGroupId(string $id = null): void
248196
{
249197
$this->messageGroupId = $id;
250198
}
251199

252-
/**
253-
* @return string|null
254-
*/
255200
public function getMessageGroupId(): ?string
256201
{
257202
return $this->messageGroupId;

0 commit comments

Comments
 (0)