Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzipp authored and github-actions[bot] committed Apr 6, 2024
1 parent 5296d72 commit a06a41a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/queue-monitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* romanzipp\QueueMonitor\Models\Contracts\MonitorContract
* interface or extend the base model.
*/
'model' => romanzipp\QueueMonitor\Models\Monitor::class,
'model' => \romanzipp\QueueMonitor\Models\Monitor::class,

// Determined if the queued jobs should be monitored
'monitor_queued_jobs' => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function upgradeColumns()

foreach ($matrix as $status => $monitors) {
DB::table(config('queue-monitor.table'))
->whereIn('id', array_map(fn (stdClass $monitor) => $monitor->id, $monitors))
->whereIn('id', array_map(fn (\stdClass $monitor) => $monitor->id, $monitors))
->update(['status' => $status]);
}
});
Expand Down
8 changes: 4 additions & 4 deletions routes/queue-monitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

use Illuminate\Support\Facades\Route;

Route::get('', romanzipp\QueueMonitor\Controllers\ShowQueueMonitorController::class)->name('queue-monitor::index');
Route::get('', \romanzipp\QueueMonitor\Controllers\ShowQueueMonitorController::class)->name('queue-monitor::index');

Route::delete('monitors/{monitor}', romanzipp\QueueMonitor\Controllers\DeleteMonitorController::class)->name('queue-monitor::destroy');
Route::delete('monitors/{monitor}', \romanzipp\QueueMonitor\Controllers\DeleteMonitorController::class)->name('queue-monitor::destroy');

Route::patch('monitors/retry/{monitor}', romanzipp\QueueMonitor\Controllers\RetryMonitorController::class)->name('queue-monitor::retry');
Route::patch('monitors/retry/{monitor}', \romanzipp\QueueMonitor\Controllers\RetryMonitorController::class)->name('queue-monitor::retry');

Route::delete('purge', romanzipp\QueueMonitor\Controllers\PurgeMonitorsController::class)->name('queue-monitor::purge');
Route::delete('purge', \romanzipp\QueueMonitor\Controllers\PurgeMonitorsController::class)->name('queue-monitor::purge');
2 changes: 1 addition & 1 deletion src/Services/QueueMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static function handleJobExceptionOccurred(JobExceptionOccurred $event):
public static function getJobId(JobContract $job): string
{
if ($jobId = $job->getJobId()) {
return (string)$jobId;
return (string) $jobId;
}

return sha1($job->getRawBody());
Expand Down

0 comments on commit a06a41a

Please sign in to comment.