mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 14:48:11 +00:00
Various PSR12 code cleanup
This commit is contained in:
@@ -36,18 +36,18 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
/**
|
||||
* FireflyIII\Models\WebhookMessage
|
||||
*
|
||||
* @property int $id
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property string|null $deleted_at
|
||||
* @property int $webhook_id
|
||||
* @property bool $sent
|
||||
* @property bool $errored
|
||||
* @property int $attempts
|
||||
* @property string $uuid
|
||||
* @property array $message
|
||||
* @property array|null $logs
|
||||
* @property-read Webhook $webhook
|
||||
* @property int $id
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property string|null $deleted_at
|
||||
* @property int $webhook_id
|
||||
* @property bool $sent
|
||||
* @property bool $errored
|
||||
* @property int $attempts
|
||||
* @property string $uuid
|
||||
* @property array $message
|
||||
* @property array|null $logs
|
||||
* @property-read Webhook $webhook
|
||||
* @method static Builder|WebhookMessage newModelQuery()
|
||||
* @method static Builder|WebhookMessage newQuery()
|
||||
* @method static Builder|WebhookMessage query()
|
||||
@@ -64,7 +64,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
* @method static Builder|WebhookMessage whereWebhookId($value)
|
||||
* @mixin Eloquent
|
||||
* @property-read Collection|WebhookAttempt[] $webhookAttempts
|
||||
* @property-read int|null $webhook_attempts_count
|
||||
* @property-read int|null $webhook_attempts_count
|
||||
*/
|
||||
class WebhookMessage extends Model
|
||||
{
|
||||
@@ -80,7 +80,7 @@ class WebhookMessage extends Model
|
||||
/**
|
||||
* Route binder. Converts the key in the URL to the specified object (or throw 404).
|
||||
*
|
||||
* @param string $value
|
||||
* @param string $value
|
||||
*
|
||||
* @return WebhookMessage
|
||||
* @throws NotFoundHttpException
|
||||
@@ -88,7 +88,7 @@ class WebhookMessage extends Model
|
||||
public static function routeBinder(string $value): WebhookMessage
|
||||
{
|
||||
if (auth()->check()) {
|
||||
$messageId = (int) $value;
|
||||
$messageId = (int)$value;
|
||||
/** @var User $user */
|
||||
$user = auth()->user();
|
||||
/** @var WebhookMessage $message */
|
||||
|
||||
Reference in New Issue
Block a user