File tree Expand file tree Collapse file tree 5 files changed +10
-2
lines changed Expand file tree Collapse file tree 5 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 33
33
"phpmd/phpmd" : " ^2.1.2" ,
34
34
"phpunit/phpunit" : " ^8.0" ,
35
35
"php-http/curl-client" : " ^2.0" ,
36
- "squizlabs/php_codesniffer" : " ^3.4" ,
37
36
"swiftmailer/swiftmailer" : " ^6.2" ,
38
37
"phpstan/phpstan" : " ^0.12" ,
39
38
"pdepend/pdepend" : " ^2.5" ,
40
39
"maglnet/composer-require-checker" : " ^2.0" ,
41
40
"nyholm/psr7" : " ^1.2" ,
42
- "doctrine/coding-standard" : " ^6 .0"
41
+ "doctrine/coding-standard" : " ^7 .0"
43
42
}
44
43
}
Original file line number Diff line number Diff line change 20
20
<exclude name =" SlevomatCodingStandard.ControlStructures.DisallowYodaComparison.DisallowedYodaComparison" />
21
21
<exclude name =" SlevomatCodingStandard.TypeHints.DeclareStrictTypes.IncorrectWhitespaceBetweenOpenTagAndDeclare" />
22
22
<exclude name =" SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing.IncorrectWhitespaceBeforeColon" />
23
+
24
+ <!-- This package supports PHP 7.2/7.3 and therefore can not use native type hints -->
25
+ <exclude name =" SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint" />
23
26
</rule >
24
27
25
28
<!-- require declare(strict_types=1) in each file, with 0 empty lines above and 1 empty line below -->
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ public function contains(Contact $needle): bool
57
57
return false ;
58
58
}
59
59
60
+ /**
61
+ * @return Traversable<Contact>
62
+ */
60
63
public function getIterator (): Traversable
61
64
{
62
65
return new ArrayIterator ($ this ->contacts );
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ public function __construct(
74
74
);
75
75
}
76
76
}
77
+
77
78
$ this ->messageId = $ messageId ;
78
79
$ this ->sender = $ sender ;
79
80
$ this ->recipients = $ recipients ;
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ public function getBody(): string
82
82
if ($ mimePart ->isAttachment ()) {
83
83
continue ;
84
84
}
85
+
85
86
if (stripos ($ mimePart ->getContentType (), 'text/html ' ) === 0 ) {
86
87
return $ mimePart ->getBody ();
87
88
}
@@ -91,6 +92,7 @@ public function getBody(): string
91
92
if ($ mimePart ->isAttachment ()) {
92
93
continue ;
93
94
}
95
+
94
96
if (stripos ($ mimePart ->getContentType (), 'text/plain ' ) === 0 ) {
95
97
return $ mimePart ->getBody ();
96
98
}
You can’t perform that action at this time.
0 commit comments