Skip to content

Commit d54c003

Browse files
author
Thorsten Suckow-Homberg
committed
style: update sources according to coding standards
1 parent 40bcb6a commit d54c003

File tree

6 files changed

+5
-16
lines changed

6 files changed

+5
-16
lines changed

src/Mail/Client/Data/MailAccount.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,5 +251,4 @@ public function toJson(JsonStrategy $strategy = null): array
251251
{
252252
return $strategy ? $strategy->toJson($this) : $this->toArray();
253253
}
254-
255254
}

src/Mail/Client/Util/JsonApiStrategy.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
*/
3939
class JsonApiStrategy implements JsonStrategy
4040
{
41-
4241
/**
4342
* Transforms the $data to a format that matches the JSON:API specifications by considering
4443
* attributes and relationships.
@@ -81,8 +80,7 @@ public function toJson(Arrayable $source): array
8180
continue;
8281
}
8382

84-
$result["attributes"][$field] =$value;
85-
83+
$result["attributes"][$field] = $value;
8684
}
8785

8886
return $result;

src/Util/JsonStrategy.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
*/
3636
interface JsonStrategy
3737
{
38-
3938
/**
4039
* Returns a JSON representation of the data passed to this method.
4140
*

tests/Mail/Client/Data/MailAccountTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,5 @@ public function testToJson()
159159
->willReturn($account->toArray());
160160

161161
$this->assertEquals($config, $account->toJson($strategyMock));
162-
163-
164-
165162
}
166-
167-
168-
169163
}

tests/Mail/Client/Imap/Util/DefaultFolderIdToTypeMapperTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ public function testGetFolderType()
8080
$this->assertSame(
8181
MailFolder::TYPE_DRAFT,
8282
$mapper->getFolderType($this->createListMailFolder("INBOX.Drafts", "."))
83-
8483
);
8584
$this->assertSame(
8685
MailFolder::TYPE_DRAFT,
@@ -156,15 +155,17 @@ public function testGetFolderType()
156155

157156

158157
// FOLDER
159-
foreach ([
158+
foreach (
159+
[
160160
["SomeRandomFolder/Draft", "/"],
161161
["SomeRandomFolder/Draft/Test", "/"],
162162
["SomeRandom", "."],
163163
["INBOX/Somefolder/Deep/Drafts", "/"],
164164
["INBOX.Trash.Deep.Deeper.Folder", "."],
165165
["Junk/Draft", "/"],
166166
["TRASH.Draft.folder", "."]
167-
] as $folder) {
167+
] as $folder
168+
) {
168169
$this->assertSame(
169170
MailFolder::TYPE_FOLDER,
170171
$mapper->getFolderType($this->createListMailFolder($folder[0], $folder[1]))
@@ -207,7 +208,6 @@ public function testGetFolderType()
207208
$mapper->getFolderType($this->createListMailFolder("[$label]/Trash", "."))
208209
);
209210
}
210-
211211
}
212212

213213

tests/Mail/Client/Util/JsonApiStrategyTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,5 @@ public function testToJson()
8989
]
9090
]
9191
], $strategy->toJson($arrayMock));
92-
9392
}
9493
}

0 commit comments

Comments
 (0)