Laravel Pint fixes
Also remove a file that wasn’t needed
This commit is contained in:
parent
bdbcaa55ea
commit
f2c8f04c2f
4 changed files with 5 additions and 26 deletions
|
@ -34,6 +34,7 @@ class SaveScreenshot implements ShouldQueue
|
||||||
* Execute the job.
|
* Execute the job.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
* @throws JsonException
|
* @throws JsonException
|
||||||
*/
|
*/
|
||||||
public function handle(): void
|
public function handle(): void
|
||||||
|
@ -54,7 +55,7 @@ class SaveScreenshot implements ShouldQueue
|
||||||
'screen_width' => 1440,
|
'screen_width' => 1440,
|
||||||
'screen_height' => 900,
|
'screen_height' => 900,
|
||||||
'wait_until' => 'networkidle0',
|
'wait_until' => 'networkidle0',
|
||||||
'wait_time' => 100
|
'wait_time' => 100,
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -134,6 +134,7 @@ class AppServiceProvider extends ServiceProvider
|
||||||
return 1000;
|
return 1000;
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|
||||||
return new Client(['handler' => $handlerStack]);
|
return new Client(['handler' => $handlerStack]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -14,15 +14,14 @@ use GuzzleHttp\Client;
|
||||||
use GuzzleHttp\Exception\ClientException;
|
use GuzzleHttp\Exception\ClientException;
|
||||||
use Illuminate\Support\Arr;
|
use Illuminate\Support\Arr;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Ramsey\Uuid\Uuid;
|
|
||||||
|
|
||||||
class BookmarkService extends Service
|
class BookmarkService extends Service
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Create a new Bookmark.
|
* Create a new Bookmark.
|
||||||
*
|
*
|
||||||
* @param array $request Data from request()->all()
|
* @param array $request Data from request()->all()
|
||||||
* @param string|null $client
|
* @param string|null $client
|
||||||
* @return Bookmark
|
* @return Bookmark
|
||||||
*/
|
*/
|
||||||
public function create(array $request, ?string $client = null): Bookmark
|
public function create(array $request, ?string $client = null): Bookmark
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Tests\Feature\Jobs;
|
|
||||||
|
|
||||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
||||||
use Illuminate\Foundation\Testing\WithFaker;
|
|
||||||
use Tests\TestCase;
|
|
||||||
|
|
||||||
class SaveScreenshotTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* A basic feature test example.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function test_example()
|
|
||||||
{
|
|
||||||
$response = $this->get('/');
|
|
||||||
|
|
||||||
$response->assertStatus(200);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue