src/ListensForStorageOpportunities.php
protected static function storeIfDoneProcessingJob($event, $app)
    {
        array_pop(static::$processingJobs);

        if (empty(static::$processingJobs)) {
            static::store($app[EntriesRepository::class]);

            if ($event->connectionName !== 'sync') {
                static::stopRecording();
            }
        }
    }
protected static function storeIfDoneProcessingJob($event, $app)
    {
        array_pop(static::$processingJobs);

        if (empty(static::$processingJobs)) {
            static::store($app[EntriesRepository::class]);

            if ($event->connectionName !== 'sync') {
                static::stopRecording();
            }
        }
    }
protected static function storeIfDoneProcessingJob ( $ event , $ app ) { array_pop ( static :: $ processingJobs ) ; if ( empty ( static :: $ processingJobs ) ) { static :: store ( $ app [ EntriesRepository :: class ] ) ; if ( $ event -> connectionName !== 'sync' ) { static :: stopRecording ( ) ; } } }
Store the recorded entries if totally done processing the current job.

@param  \Illuminate\Queue\Events\JobProcessed $event
@param  \Illuminate\Foundation\Application  $app
@return void
Store the recorded entries if totally done processing the current job .