Skip to content

Commit

Permalink
♻️ wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Dec 10, 2024
1 parent f3311e3 commit 3047689
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Concerns/Database/InteractsWithSqliteDatabaseFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected function withoutSqliteDatabase(callable $callback): void
if ($filesystem->exists($database)) {
$filesystem->move($database, $temporary = "{$database}.backup-{$time}");

array_push($this->files, $temporary);
$this->files[] = $temporary;
}

value($callback);
Expand Down
4 changes: 2 additions & 2 deletions src/Concerns/InteractsWithTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ public static function usesTestingFeature($attribute): void
/** @var class-string<TTestingFeature> $name */
$name = \get_class($attribute);

array_push(static::$testCaseTestingFeatures, [
static::$testCaseTestingFeatures[] = [
'key' => $name,
'instance' => $attribute,
]);
];
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Concerns/InteractsWithWorkbench.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected function getPackageProvidersUsingWorkbench($app): ?array
$providers = $config?->getExtraAttributes()['providers'] ?? [];

if ($hasAuthentication && class_exists('Orchestra\Workbench\AuthServiceProvider')) {
array_push($providers, 'Orchestra\Workbench\AuthServiceProvider');
$providers[] = 'Orchestra\Workbench\AuthServiceProvider';
}

if (empty($providers)) {
Expand Down
4 changes: 2 additions & 2 deletions src/PHPUnit/AttributeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static function forClass(string $className): array
[$name, $instance] = static::resolveAttribute($attribute);

if (! \is_null($name) && ! \is_null($instance)) {
array_push($attributes, ['key' => $name, 'instance' => $instance]);
$attributes[] = ['key' => $name, 'instance' => $instance];
}
}

Expand Down Expand Up @@ -75,7 +75,7 @@ public static function forMethod(string $className, string $methodName): array
[$name, $instance] = static::resolveAttribute($attribute);

if (! \is_null($name) && ! \is_null($instance)) {
array_push($attributes, ['key' => $name, 'instance' => $instance]);
$attributes[] = ['key' => $name, 'instance' => $instance];
}
}

Expand Down

0 comments on commit 3047689

Please sign in to comment.