Skip to content

Commit 5db1978

Browse files
committed
set phpdoc_summary and not_operator_with_successor_space phpcs rules to true
1 parent 9bbcc57 commit 5db1978

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ composer.phar
44
composer.lock
55
.DS_Store
66
.phpunit.result.cache
7+
.php-cs-fixer.cache

.php-cs-fixer.dist.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
'array_syntax' => ['syntax' => 'short'],
1717
'ordered_imports' => ['sort_algorithm' => 'alpha'],
1818
'no_unused_imports' => true,
19-
'not_operator_with_successor_space' => false,
19+
'not_operator_with_successor_space' => true,
2020
'trailing_comma_in_multiline' => true,
2121
'phpdoc_scalar' => true,
2222
'unary_operator_spaces' => true,
@@ -36,5 +36,6 @@
3636
'keep_multiple_spaces_after_comma' => true,
3737
],
3838
'single_trait_insert_per_statement' => true,
39+
'phpdoc_summary' => true,
3940
])
4041
->setFinder($finder);

src/Component/Document.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Document extends Component
1010

1111
/**
1212
* Link to the document; e.g. https://URL
13-
* Only PDF documents are supported
13+
* Only PDF documents are supported.
1414
*/
1515
protected string $link;
1616

@@ -22,7 +22,7 @@ public function __construct(string $link)
2222

2323
$extension = pathinfo($link, PATHINFO_EXTENSION);
2424

25-
if (!in_array($extension, static::SUPPORTED_EXTENSIONS)) {
25+
if (! in_array($extension, static::SUPPORTED_EXTENSIONS)) {
2626
throw new UnsupportedMediaValue($link, 'document', 'Only PDF documents are supported.');
2727
}
2828

src/Component/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class Image extends Component
66
{
77
/**
8-
* Link to the image; e.g. https://URL
8+
* Link to the image; e.g. https://URL.
99
*/
1010
protected string $link;
1111

src/Component/Video.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class Video extends Component
66
{
77
/**
8-
* Link to the video; e.g. https://URL
8+
* Link to the video; e.g. https://URL.
99
*/
1010
protected string $link;
1111

src/WhatsAppChannel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ public function send($notifiable, Notification $notification): ?Response
2828
// @phpstan-ignore-next-line
2929
$message = $notification->toWhatsApp($notifiable);
3030

31-
if (!$message->hasRecipient()) {
31+
if (! $message->hasRecipient()) {
3232
$to = $notifiable->routeNotificationFor('whatsapp', $notification)
3333
?? $notifiable->routeNotificationFor(self::class, $notification);
3434

35-
if (!$to) {
35+
if (! $to) {
3636
return null;
3737
}
3838

src/WhatsAppTemplate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@ public function components(): CloudApiComponent
105105

106106
public function hasRecipient(): bool
107107
{
108-
return !empty($this->to);
108+
return ! empty($this->to);
109109
}
110110
}

0 commit comments

Comments
 (0)