Added php-cs-fixer rule void_return

This commit is contained in:
Constantin Graf
2024-07-02 16:37:05 +02:00
committed by Gregor Vostrak
parent a820d8540f
commit 2e8da98287
51 changed files with 96 additions and 95 deletions

View File

@@ -112,7 +112,7 @@ class RegistrationTest extends TestCase
public function test_new_users_can_register_and_uses_ip_lookup_service_to_get_information_about_currency_and_start_of_week(): void
{
// Arrange
$this->mock(IpLookupServiceContract::class, function ($mock) {
$this->mock(IpLookupServiceContract::class, function ($mock): void {
$mock->shouldReceive('lookup')->andReturn(new IpLookupResponseDto(
'America/New_York',
Weekday::Sunday,
@@ -143,7 +143,7 @@ class RegistrationTest extends TestCase
public function test_new_users_can_register_and_uses_ip_lookup_service_to_get_information_about_timezone_if_client_did_not_send_one(): void
{
// Arrange
$this->mock(IpLookupServiceContract::class, function ($mock) {
$this->mock(IpLookupServiceContract::class, function ($mock): void {
$mock->shouldReceive('lookup')->andReturn(new IpLookupResponseDto(
'America/New_York',
Weekday::Sunday,
@@ -174,7 +174,7 @@ class RegistrationTest extends TestCase
public function test_new_users_can_register_and_uses_ip_lookup_service_to_get_information_about_timezone_if_client_sends_invalid_one(): void
{
// Arrange
$this->mock(IpLookupServiceContract::class, function ($mock) {
$this->mock(IpLookupServiceContract::class, function ($mock): void {
$mock->shouldReceive('lookup')->andReturn(new IpLookupResponseDto(
'America/New_York',
Weekday::Sunday,
@@ -205,7 +205,7 @@ class RegistrationTest extends TestCase
public function test_new_users_can_register_and_legacy_timezone_from_client_is_mapped_to_new_timezone(): void
{
// Arrange
$this->mock(IpLookupServiceContract::class, function ($mock) {
$this->mock(IpLookupServiceContract::class, function ($mock): void {
$mock->shouldReceive('lookup')->andReturn(new IpLookupResponseDto(
'America/New_York',
Weekday::Sunday,