Skip to content

Commit

Permalink
PHP CS Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammyjo20 authored and github-actions[bot] committed Aug 22, 2023
1 parent 99d78c1 commit 06b359a
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/Concerns/ManagesBales.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public function addPendingJobs(array $pendingJobs): void
*
* @throws PhpVersionNotSupportedException
*/
protected function invokeCallbacks(?array $closures, ?Collection $data = null): void
protected function invokeCallbacks(?array $closures, Collection $data = null): void
{
collect($closures)->each(function (SerializableClosure $closure) use ($data) {
$closure($data);
Expand Down
6 changes: 4 additions & 2 deletions tests/Feature/BaleAttemptsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
declare(strict_types=1);

use Illuminate\Support\Carbon;
use Sammyjo20\LaravelHaystack\Tests\Fixtures\Jobs\AutoRetryUntilJob;
use Sammyjo20\LaravelHaystack\Tests\Fixtures\Jobs\RetryUntilJob;

use function Pest\Laravel\travel;

use Sammyjo20\LaravelHaystack\Models\Haystack;
use Sammyjo20\LaravelHaystack\Contracts\StackableJob;
use Sammyjo20\LaravelHaystack\Tests\Fixtures\Jobs\RetryUntilJob;
use Sammyjo20\LaravelHaystack\Tests\Fixtures\Jobs\AutoRetryUntilJob;
use Sammyjo20\LaravelHaystack\Tests\Fixtures\Jobs\AlwaysLongReleaseJob;
use Sammyjo20\LaravelHaystack\Tests\Fixtures\Jobs\AutoAlwaysLongReleaseJob;

Expand Down
1 change: 1 addition & 0 deletions tests/Feature/CommandsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
declare(strict_types=1);

use function Pest\Laravel\artisan;

use Illuminate\Support\Collection;
use Sammyjo20\LaravelHaystack\Models\Haystack;
use Sammyjo20\LaravelHaystack\Tests\Fixtures\Jobs\NameJob;
Expand Down
4 changes: 4 additions & 0 deletions tests/Feature/HaystackTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
declare(strict_types=1);

use Illuminate\Support\Carbon;

use function Pest\Laravel\travel;

use Illuminate\Support\Collection;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Queue;

use function Pest\Laravel\assertModelMissing;

use Sammyjo20\LaravelHaystack\Models\Haystack;
use Sammyjo20\LaravelHaystack\Tests\Fixtures\Jobs\FailJob;
use Sammyjo20\LaravelHaystack\Tests\Fixtures\Jobs\NameJob;
Expand Down
2 changes: 2 additions & 0 deletions tests/Feature/LongDelayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
declare(strict_types=1);

use Illuminate\Support\Carbon;

use function Pest\Laravel\travel;

use Sammyjo20\LaravelHaystack\Models\Haystack;
use Sammyjo20\LaravelHaystack\Tests\Fixtures\Jobs\CacheJob;
use Sammyjo20\LaravelHaystack\Tests\Fixtures\Jobs\AutoCacheJob;
Expand Down
4 changes: 1 addition & 3 deletions tests/Fixtures/Jobs/AutoRetryUntilJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace Sammyjo20\LaravelHaystack\Tests\Fixtures\Jobs;

use Carbon\CarbonInterface;
use DateTime;
use Carbon\CarbonInterface;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
Expand All @@ -20,8 +20,6 @@ class AutoRetryUntilJob implements ShouldQueue, StackableJob

/**
* Max Exceptions
*
* @var int
*/
public int $maxExceptions = 1;

Expand Down
2 changes: 0 additions & 2 deletions tests/Fixtures/Jobs/RetryUntilJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class RetryUntilJob implements ShouldQueue, StackableJob

/**
* Max Exceptions
*
* @var int
*/
public int $maxExceptions = 1;

Expand Down
3 changes: 1 addition & 2 deletions tests/Migrations/create_country_singers_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

return new class extends Migration
{
return new class extends Migration {
/**
* Run the migrations.
*
Expand Down
3 changes: 1 addition & 2 deletions tests/Migrations/create_failed_jobs_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

return new class extends Migration
{
return new class extends Migration {
/**
* Run the migrations.
*
Expand Down
3 changes: 1 addition & 2 deletions tests/Migrations/create_jobs_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

return new class extends Migration
{
return new class extends Migration {
/**
* Run the migrations.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/PruneTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
declare(strict_types=1);

use Illuminate\Support\Carbon;

use function Pest\Laravel\assertModelExists;
use function Pest\Laravel\assertModelMissing;

use Sammyjo20\LaravelHaystack\Models\Haystack;

test('can correctly prune stale haystacks', function () {
Expand Down

0 comments on commit 06b359a

Please sign in to comment.