Fix pint issues

This commit is contained in:
Bubka 2024-11-17 23:26:40 +01:00
parent fd695c7765
commit a2328aa46e
4 changed files with 10 additions and 10 deletions

View File

@ -227,7 +227,7 @@ public function store(string $name, string $content) : bool
}
if ($content != $sanitized) {
$content = $sanitized;
$content = $sanitized;
$storedToDisk = $this->storeToDisk($name, $content);
}
}

View File

@ -42,7 +42,7 @@ public function setUp() : void
LogoService::TFA_URL => Http::response(HttpRequestTestData::TFA_JSON_BODY, 200),
]);
Http::fake([
OtpTestData::EXTERNAL_IMAGE_URL_DECODED => Http::response((new FileFactory)->image('file.png', 10, 10)->tempFile, 200),
OtpTestData::EXTERNAL_IMAGE_URL_DECODED => Http::response((new FileFactory)->image('file.png', 10, 10)->tempFile, 200),
]);
$this->user = User::factory()->create();

View File

@ -241,11 +241,11 @@ public function setUp() : void
Http::preventStrayRequests();
Http::fake([
LogoService::TFA_IMG_URL . '*' => Http::response(HttpRequestTestData::SVG_LOGO_BODY, 200),
LogoService::TFA_URL => Http::response(HttpRequestTestData::TFA_JSON_BODY, 200),
OtpTestData::EXTERNAL_IMAGE_URL_DECODED => Http::response((new FileFactory)->image('file.png', 10, 10)->tempFile, 200),
LogoService::TFA_IMG_URL . '*' => Http::response(HttpRequestTestData::SVG_LOGO_BODY, 200),
LogoService::TFA_URL => Http::response(HttpRequestTestData::TFA_JSON_BODY, 200),
OtpTestData::EXTERNAL_IMAGE_URL_DECODED => Http::response((new FileFactory)->image('file.png', 10, 10)->tempFile, 200),
OtpTestData::EXTERNAL_INFECTED_IMAGE_URL_DECODED => Http::response((new FileFactory)->createWithContent('infected.svg', OtpTestData::ICON_SVG_DATA_INFECTED)->tempFile, 200),
'example.com/*' => Http::response(null, 400),
'example.com/*' => Http::response(null, 400),
]);
$this->user = User::factory()->create();