packages/sync/src/Jobs/PrepareSyncJob.php
Method sendToWebhook
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function sendToWebhook(Platform $platform, bool $shouldDelete)
{
$webhookPath = config('sync.sync_webhook_url', '/sync-webhook');
$syncToken = config('sync.sync_token');
$webhookUrl = 'https://'.$platform->domain.$webhookPath;
Method invokeWebhooks
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function invokeWebhooks(array $data)
{
$webhookPath = config('sync.sync_webhook_url', '/sync-webhook');
$syncToken = config('sync.sync_token');
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function __construct($identifierField, $identifierValue, $modelClass, $eventType, $platformId, $syncConfigurations)