mooxphp/moox

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

Summary

Maintainability
A
1 hr
Test Coverage

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

    protected function invokeWebhooks(array $data)
    {
        $webhookPath = config('sync.sync_webhook_url', '/sync-webhook');

        foreach ($this->syncConfigurations as $syncConfig) {
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