Skip to content

Commit 13a7b7d

Browse files
authored
chore: style fixes
1 parent 38f9845 commit 13a7b7d

11 files changed

+72
-120
lines changed

src/OneSignalButton.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ class OneSignalButton
1414
protected $icon;
1515

1616
/**
17-
* @param string $id
18-
*
17+
* @param string $id
1918
* @return static
2019
*/
2120
public static function create($id)
@@ -24,7 +23,7 @@ public static function create($id)
2423
}
2524

2625
/**
27-
* @param string $id
26+
* @param string $id
2827
*/
2928
public function __construct($id)
3029
{
@@ -34,8 +33,7 @@ public function __construct($id)
3433
/**
3534
* Set the message icon.
3635
*
37-
* @param string $value
38-
*
36+
* @param string $value
3937
* @return $this
4038
*/
4139
public function icon($value)
@@ -48,8 +46,7 @@ public function icon($value)
4846
/**
4947
* Set the message subject.
5048
*
51-
* @param string $value
52-
*
49+
* @param string $value
5350
* @return $this
5451
*/
5552
public function text($value)

src/OneSignalChannel.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ public function __construct(OneSignalClient $oneSignal)
2020
/**
2121
* Send the given notification.
2222
*
23-
* @param mixed $notifiable
24-
* @param \Illuminate\Notifications\Notification $notification
25-
*
23+
* @param mixed $notifiable
24+
* @param \Illuminate\Notifications\Notification $notification
2625
* @return \Psr\Http\Message\ResponseInterface
26+
*
2727
* @throws \NotificationChannels\OneSignal\Exceptions\CouldNotSendNotification
2828
*/
2929
public function send($notifiable, Notification $notification)
@@ -45,10 +45,9 @@ public function send($notifiable, Notification $notification)
4545
}
4646

4747
/**
48-
* @param mixed $notifiable
49-
* @param \Illuminate\Notifications\Notification $notification
50-
* @param mixed $targeting
51-
*
48+
* @param mixed $notifiable
49+
* @param \Illuminate\Notifications\Notification $notification
50+
* @param mixed $targeting
5251
* @return array
5352
*/
5453
protected function payload($notifiable, $notification, $userIds)

src/OneSignalMessage.php

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ class OneSignalMessage
1919
protected $payload = [];
2020

2121
/**
22-
* @param string $body
23-
*
22+
* @param string $body
2423
* @return static
2524
*/
2625
public static function create($body = '')
@@ -29,7 +28,7 @@ public static function create($body = '')
2928
}
3029

3130
/**
32-
* @param string $body
31+
* @param string $body
3332
*/
3433
public function __construct($body = '')
3534
{
@@ -39,8 +38,7 @@ public function __construct($body = '')
3938
/**
4039
* Set the message body.
4140
*
42-
* @param mixed $value
43-
*
41+
* @param mixed $value
4442
* @return $this
4543
*/
4644
public function setBody($value)
@@ -51,8 +49,7 @@ public function setBody($value)
5149
/**
5250
* Set the message subject.
5351
*
54-
* @param mixed $value
55-
*
52+
* @param mixed $value
5653
* @return $this
5754
*/
5855
public function setSubject($value)
@@ -63,8 +60,7 @@ public function setSubject($value)
6360
/**
6461
* Set the message template_id.
6562
*
66-
* @param string $value
67-
*
63+
* @param string $value
6864
* @return $this
6965
*/
7066
public function setTemplate($value)
@@ -75,8 +71,7 @@ public function setTemplate($value)
7571
}
7672

7773
/**
78-
* @param mixed $value
79-
*
74+
* @param mixed $value
8075
* @return array
8176
*/
8277
protected function parseValueToArray($value)
@@ -87,9 +82,8 @@ protected function parseValueToArray($value)
8782
/**
8883
* Set additional data.
8984
*
90-
* @param string $key
91-
* @param mixed $value
92-
*
85+
* @param string $key
86+
* @param mixed $value
9387
* @return $this
9488
*/
9589
public function setData(string $key, $value)
@@ -100,9 +94,8 @@ public function setData(string $key, $value)
10094
/**
10195
* Set parameters.
10296
*
103-
* @param string $key
104-
* @param mixed $value
105-
*
97+
* @param string $key
98+
* @param mixed $value
10699
* @return $this
107100
*/
108101
public function setParameter(string $key, $value)
@@ -115,9 +108,8 @@ public function setParameter(string $key, $value)
115108
/**
116109
* Get parameters.
117110
*
118-
* @param string $key
119-
* @param mixed $default
120-
*
111+
* @param string $key
112+
* @param mixed $default
121113
* @return mixed
122114
*/
123115
public function getParameter(string $key, $default = null)

src/OneSignalPayloadFactory.php

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ class OneSignalPayloadFactory
99
/**
1010
* Make a one signal notification payload.
1111
*
12-
* @param mixed $notifiable
13-
* @param \Illuminate\Notifications\Notification $notification
14-
* @param mixed $targeting
15-
*
12+
* @param mixed $notifiable
13+
* @param \Illuminate\Notifications\Notification $notification
14+
* @param mixed $targeting
1615
* @return array
1716
*/
1817
public static function make($notifiable, Notification $notification, $targeting): array
@@ -43,8 +42,7 @@ public static function make($notifiable, Notification $notification, $targeting)
4342
}
4443

4544
/**
46-
* @param mixed $targeting
47-
*
45+
* @param mixed $targeting
4846
* @return bool
4947
*/
5048
protected static function isTargetingIncludedSegments($targeting)
@@ -53,8 +51,7 @@ protected static function isTargetingIncludedSegments($targeting)
5351
}
5452

5553
/**
56-
* @param mixed $targeting
57-
*
54+
* @param mixed $targeting
5855
* @return bool
5956
*/
6057
protected static function isTargetingExternalUserIds($targeting)
@@ -63,8 +60,7 @@ protected static function isTargetingExternalUserIds($targeting)
6360
}
6461

6562
/**
66-
* @param mixed $targeting
67-
*
63+
* @param mixed $targeting
6864
* @return bool
6965
*/
7066
protected static function isTargetingExcludedSegments($targeting)
@@ -73,8 +69,7 @@ protected static function isTargetingExcludedSegments($targeting)
7369
}
7470

7571
/**
76-
* @param mixed $targeting
77-
*
72+
* @param mixed $targeting
7873
* @return bool
7974
*/
8075
protected static function isTargetingEmail($targeting)
@@ -83,8 +78,7 @@ protected static function isTargetingEmail($targeting)
8378
}
8479

8580
/**
86-
* @param mixed $targeting
87-
*
81+
* @param mixed $targeting
8882
* @return bool
8983
*/
9084
protected static function isTargetingTags($targeting)

src/OneSignalWebButton.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ class OneSignalWebButton
1717
protected $url;
1818

1919
/**
20-
* @param string $id
21-
*
20+
* @param string $id
2221
* @return static
2322
*/
2423
public static function create($id)
@@ -27,7 +26,7 @@ public static function create($id)
2726
}
2827

2928
/**
30-
* @param string $id
29+
* @param string $id
3130
*/
3231
public function __construct($id)
3332
{
@@ -37,8 +36,7 @@ public function __construct($id)
3736
/**
3837
* Set the message icon.
3938
*
40-
* @param string $value
41-
*
39+
* @param string $value
4240
* @return $this
4341
*/
4442
public function icon($value)
@@ -51,8 +49,7 @@ public function icon($value)
5149
/**
5250
* Set the message subject.
5351
*
54-
* @param string $value
55-
*
52+
* @param string $value
5653
* @return $this
5754
*/
5855
public function text($value)
@@ -65,8 +62,7 @@ public function text($value)
6562
/**
6663
* Set the message url.
6764
*
68-
* @param string $value
69-
*
65+
* @param string $value
7066
* @return $this
7167
*/
7268
public function url($value)

src/Traits/Categories/AppearanceHelpers.php

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ trait AppearanceHelpers
77
/**
88
* Set the iOS badge increment count.
99
*
10-
* @param int $count
11-
*
10+
* @param int $count
1211
* @return $this
1312
*/
1413
public function incrementIosBadgeCount(int $count = 1)
@@ -20,8 +19,7 @@ public function incrementIosBadgeCount(int $count = 1)
2019
/**
2120
* Set the iOS badge decrement count.
2221
*
23-
* @param int $count
24-
*
22+
* @param int $count
2523
* @return $this
2624
*/
2725
public function decrementIosBadgeCount(int $count = 1)
@@ -33,8 +31,7 @@ public function decrementIosBadgeCount(int $count = 1)
3331
/**
3432
* Set the iOS badge count.
3533
*
36-
* @param int $count
37-
*
34+
* @param int $count
3835
* @return $this
3936
*/
4037
public function setIosBadgeCount(int $count)
@@ -46,8 +43,7 @@ public function setIosBadgeCount(int $count)
4643
/**
4744
* Set the iOS Sound.
4845
*
49-
* @param string $soundUrl
50-
*
46+
* @param string $soundUrl
5147
* @return $this
5248
*/
5349
public function setIosSound(string $soundUrl)
@@ -58,8 +54,7 @@ public function setIosSound(string $soundUrl)
5854
/**
5955
* Set the Android Sound.
6056
*
61-
* @param string $soundUrl
62-
*
57+
* @param string $soundUrl
6358
* @return $this
6459
*/
6560
public function setAndroidSound(string $soundUrl)
@@ -70,8 +65,7 @@ public function setAndroidSound(string $soundUrl)
7065
/**
7166
* Set the Windows Sound.
7267
*
73-
* @param string $soundUrl
74-
*
68+
* @param string $soundUrl
7569
* @return $this
7670
*/
7771
public function setWindowsSound(string $soundUrl)
@@ -83,8 +77,7 @@ public function setWindowsSound(string $soundUrl)
8377
/**
8478
* Set the Sound for all Systems.
8579
*
86-
* @param string $soundUrl
87-
*
80+
* @param string $soundUrl
8881
* @return $this
8982
*/
9083
public function setSound(string $soundUrl)
@@ -97,7 +90,7 @@ public function setSound(string $soundUrl)
9790
/**
9891
* Set the message icon.
9992
*
100-
* @param string $iconPath
93+
* @param string $iconPath
10194
*
10295
* @deprecated use setIcon instead
10396
*
@@ -111,8 +104,7 @@ public function icon(string $iconPath)
111104
/**
112105
* Set the message icon.
113106
*
114-
* @param string $iconPath
115-
*
107+
* @param string $iconPath
116108
* @return $this
117109
*/
118110
public function setIcon(string $iconPath)

0 commit comments

Comments
 (0)