Skip to content

Commit c048c6c

Browse files
authored
Merge pull request #8 from binary-cats/analysis-QMAbLg
Apply fixes from StyleCI
2 parents 48f8a3f + 546f304 commit c048c6c

File tree

8 files changed

+22
-22
lines changed

8 files changed

+22
-22
lines changed

src/Event.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Event implements WebhookEvent
1616
/**
1717
* Create new Event.
1818
*
19-
* @param array $attributes
19+
* @param array $attributes
2020
*/
2121
public function __construct($attributes)
2222
{

src/Jobs/HandleDelivered.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class HandleDelivered
2020
/**
2121
* Create new Job.
2222
*
23-
* @param Spatie\WebhookClient\Models\WebhookCall $webhookCall
23+
* @param Spatie\WebhookClient\Models\WebhookCall $webhookCall
2424
*/
2525
public function __construct(WebhookCall $webhookCall)
2626
{

src/LobSignatureValidator.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ class LobSignatureValidator implements SignatureValidator
2626
/**
2727
* True if the signature has been valiates.
2828
*
29-
* @param Illuminate\Http\Request $request
30-
* @param Spatie\WebhookClient\WebhookConfig $config
31-
*
29+
* @param Illuminate\Http\Request $request
30+
* @param Spatie\WebhookClient\WebhookConfig $config
3231
* @return bool
3332
*/
3433
public function isValid(Request $request, WebhookConfig $config): bool
@@ -53,7 +52,7 @@ public function isValid(Request $request, WebhookConfig $config): bool
5352
/**
5453
* Compile the payload.
5554
*
56-
* @param Illuminate\Http\Request $request
55+
* @param Illuminate\Http\Request $request
5756
* @return string
5857
*/
5958
protected function payload(Request $request): string

src/LobWebhooksController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class LobWebhooksController
1212
/**
1313
* Invoke controller method.
1414
*
15-
* @param \Illuminate\Http\Request $request
16-
* @param string|null $configKey
15+
* @param \Illuminate\Http\Request $request
16+
* @param string|null $configKey
1717
* @return \Illuminate\Http\Response
1818
*/
1919
public function __invoke(Request $request, string $configKey = null)

src/Webhook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ class Webhook
88
* Validate and raise an appropriate event.
99
*
1010
* @param $payload
11-
* @param array $signature
12-
* @param string $secret
11+
* @param array $signature
12+
* @param string $secret
1313
* @return BinaryCats\LobWebhooks\Event
1414
*/
1515
public static function constructEvent(array $payload, array $signature, string $secret): Event

src/WebhookSignature.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class WebhookSignature
2424
/**
2525
* Create new Signature.
2626
*
27-
* @param array $signatureArray
28-
* @param string $secret
27+
* @param array $signatureArray
28+
* @param string $secret
2929
*/
3030
public function __construct(array $signatureArray, string $secret)
3131
{
@@ -37,7 +37,7 @@ public function __construct(array $signatureArray, string $secret)
3737
* Statis accessor into the class constructor.
3838
*
3939
* @param array $signatureArray
40-
* @param string $secret
40+
* @param string $secret
4141
* @return new static
4242
*/
4343
public static function make($signatureArray, string $secret)
@@ -49,6 +49,7 @@ public static function make($signatureArray, string $secret)
4949
* True if the signature is valid.
5050
*
5151
* @return bool
52+
*
5253
* @throws BinaryCats\LobWebhooks\Exceptions\SignatureVerificationException when validation fails
5354
*/
5455
public function verify(): bool
@@ -78,7 +79,7 @@ protected function computeSignature()
7879
/**
7980
* Magically access items from signature array.
8081
*
81-
* @param string $attribute
82+
* @param string $attribute
8283
* @return mixed
8384
*/
8485
public function __get($attribute)

tests/DummyJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class DummyJob
1616
/**
1717
* Create new Job.
1818
*
19-
* @param Spatie\WebhookClient\Models\WebhookCall $webhookCall
19+
* @param Spatie\WebhookClient\Models\WebhookCall $webhookCall
2020
*/
2121
public function __construct(WebhookCall $webhookCall)
2222
{

tests/TestCase.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function setUp(): void
2121
/**
2222
* Set up the environment.
2323
*
24-
* @param \Illuminate\Foundation\Application $app
24+
* @param \Illuminate\Foundation\Application $app
2525
*/
2626
protected function getEnvironmentSetUp($app)
2727
{
@@ -43,8 +43,7 @@ protected function setUpDatabase()
4343
}
4444

4545
/**
46-
* @param \Illuminate\Foundation\Application $app
47-
*
46+
* @param \Illuminate\Foundation\Application $app
4847
* @return array
4948
*/
5049
protected function getPackageProviders($app)
@@ -56,7 +55,8 @@ protected function getPackageProviders($app)
5655

5756
protected function disableExceptionHandling()
5857
{
59-
$this->app->instance(ExceptionHandler::class, new class extends Handler {
58+
$this->app->instance(ExceptionHandler::class, new class extends Handler
59+
{
6060
public function __construct()
6161
{
6262
}
@@ -75,9 +75,9 @@ public function render($request, Exception $exception)
7575
/**
7676
* Compile lob.com siangure.
7777
*
78-
* @param array $payload
79-
* @param int $timestamp
80-
* @param string|null $configKey
78+
* @param array $payload
79+
* @param int $timestamp
80+
* @param string|null $configKey
8181
* @return string
8282
*/
8383
protected function determineLobSignature(array $payload, $timestamp, string $configKey = null): string

0 commit comments

Comments
 (0)