Lint
This commit is contained in:
parent
2d39816954
commit
820a725517
|
@ -32,11 +32,11 @@ class Post extends Model implements HasMedia
|
|||
$this->addMediaCollection('images')->after(fn ($model) => Event::dispatch(new MediaChange($model)));
|
||||
|
||||
$this->addMediaCollection('singleForced')->singleFile()->forceFileName(function ($model, $name) {
|
||||
return $name.' '.now()->format('Y-m-d');
|
||||
return $name . ' ' . now()->format('Y-m-d');
|
||||
});
|
||||
|
||||
$this->addMediaCollection('multipleForced')->forceFileName(function ($model, $name) {
|
||||
return $name.' '.now()->format('Y-m-d');
|
||||
return $name . ' ' . now()->format('Y-m-d');
|
||||
});
|
||||
|
||||
$this->addMediaCollection('singleStoringHook')->singleFile()->storing(function ($adder, $fileName) {
|
||||
|
|
|
@ -17,7 +17,7 @@ class TestCase extends BaseTestCase
|
|||
*/
|
||||
protected function defineDatabaseMigrations(): void
|
||||
{
|
||||
$this->loadMigrationsFrom(__DIR__.'/migrations');
|
||||
$this->loadMigrationsFrom(__DIR__ . '/migrations');
|
||||
}
|
||||
|
||||
protected function getPackageProviders($app): array
|
||||
|
@ -44,8 +44,8 @@ class TestCase extends BaseTestCase
|
|||
|
||||
protected function getFile(string $location, string $as): File
|
||||
{
|
||||
$path = __DIR__.'/stubs/'.$location;
|
||||
$to = sys_get_temp_dir().'/'.$as;
|
||||
$path = __DIR__ . '/stubs/' . $location;
|
||||
$to = sys_get_temp_dir() . '/' . $as;
|
||||
copy($path, $to);
|
||||
|
||||
return new File($to);
|
||||
|
|
Loading…
Reference in New Issue