mooxphp/moox

View on GitHub
packages/sync/src/Jobs/PrepareSyncJob.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method sendToWebhook has 37 lines of code (exceeds 25 allowed). Consider refactoring.
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;
Severity: Minor
Found in packages/sync/src/Jobs/PrepareSyncJob.php - About 1 hr to fix

    Method invokeWebhooks has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function invokeWebhooks(array $data)
        {
            $webhookPath = config('sync.sync_webhook_url', '/sync-webhook');
            $syncToken = config('sync.sync_token');
    
    
    Severity: Minor
    Found in packages/sync/src/Jobs/PrepareSyncJob.php - About 1 hr to fix

      Method __construct has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function __construct($identifierField, $identifierValue, $modelClass, $eventType, $platformId, $syncConfigurations)
      Severity: Minor
      Found in packages/sync/src/Jobs/PrepareSyncJob.php - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status