Skip to content

Commit de050cd

Browse files
committed
Use multiline_promoted_properties
1 parent a7cbde6 commit de050cd

File tree

43 files changed

+212
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+212
-43
lines changed

code_samples/ai_actions/src/AI/Handler/LLaVaTextToTextActionHandler.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
{
1717
public const string IDENTIFIER = 'LLaVATextToText';
1818

19-
public function __construct(private HttpClientInterface $client, private string $host = 'http://localhost:8080')
19+
public function __construct(
20+
private HttpClientInterface $client,
21+
private string $host = 'http://localhost:8080'
22+
)
2023
{
2124
}
2225

code_samples/ai_actions/src/AI/REST/Value/TranscribeAudioAction.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99

1010
final readonly class TranscribeAudioAction
1111
{
12-
public function __construct(private Audio $input, private RuntimeContext $runtimeContext)
12+
public function __construct(
13+
private Audio $input,
14+
private RuntimeContext $runtimeContext
15+
)
1316
{
1417
}
1518

code_samples/api/commerce/src/Controller/CustomCheckoutController.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111

1212
class CustomCheckoutController extends Controller
1313
{
14-
public function __construct(private readonly CartServiceInterface $cartService, private readonly CheckoutServiceInterface $checkoutService)
14+
public function __construct(
15+
private readonly CartServiceInterface $cartService,
16+
private readonly CheckoutServiceInterface $checkoutService
17+
)
1518
{
1619
}
1720

code_samples/api/product_catalog/src/Command/CurrencyCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
)]
1919
final class CurrencyCommand extends Command
2020
{
21-
public function __construct(private readonly CurrencyServiceInterface $currencyService, private readonly UserService $userService, private readonly PermissionResolver $permissionResolver)
21+
public function __construct(
22+
private readonly CurrencyServiceInterface $currencyService,
23+
private readonly UserService $userService,
24+
private readonly PermissionResolver $permissionResolver
25+
)
2226
{
2327
parent::__construct();
2428
}

code_samples/api/product_catalog/src/Command/ProductTypeCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
)]
1717
final class ProductTypeCommand extends Command
1818
{
19-
public function __construct(private readonly UserService $userService, private readonly PermissionResolver $permissionResolver, private readonly ProductTypeServiceInterface $productTypeService)
19+
public function __construct(
20+
private readonly UserService $userService,
21+
private readonly PermissionResolver $permissionResolver,
22+
private readonly ProductTypeServiceInterface $productTypeService
23+
)
2024
{
2125
parent::__construct();
2226
}

code_samples/api/public_php_api/src/Command/AddLanguageCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
)]
1717
class AddLanguageCommand extends Command
1818
{
19-
public function __construct(private readonly LanguageService $languageService, private readonly UserService $userService, private readonly PermissionResolver $permissionResolver)
19+
public function __construct(
20+
private readonly LanguageService $languageService,
21+
private readonly UserService $userService,
22+
private readonly PermissionResolver $permissionResolver
23+
)
2024
{
2125
parent::__construct();
2226
}

code_samples/api/public_php_api/src/Command/AddLocationToContentCommand.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
)]
1919
class AddLocationToContentCommand extends Command
2020
{
21-
public function __construct(private readonly ContentService $contentService, private readonly LocationService $locationService, private readonly UserService $userService, private readonly PermissionResolver $permissionResolver)
21+
public function __construct(
22+
private readonly ContentService $contentService,
23+
private readonly LocationService $locationService,
24+
private readonly UserService $userService,
25+
private readonly PermissionResolver $permissionResolver
26+
)
2227
{
2328
parent::__construct();
2429
}

code_samples/api/public_php_api/src/Command/BookmarkCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
)]
1717
class BookmarkCommand extends Command
1818
{
19-
public function __construct(private readonly BookmarkService $bookmarkService, private readonly LocationService $locationService)
19+
public function __construct(
20+
private readonly BookmarkService $bookmarkService,
21+
private readonly LocationService $locationService
22+
)
2023
{
2124
parent::__construct();
2225
}

code_samples/api/public_php_api/src/Command/CalendarCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
)]
1919
class CalendarCommand extends Command
2020
{
21-
public function __construct(private readonly PermissionResolver $permissionResolver, private readonly UserService $userService, private readonly CalendarServiceInterface $calendarService)
21+
public function __construct(
22+
private readonly PermissionResolver $permissionResolver,
23+
private readonly UserService $userService,
24+
private readonly CalendarServiceInterface $calendarService
25+
)
2226
{
2327
parent::__construct();
2428
}

code_samples/api/public_php_api/src/Command/CreateContentCommand.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@
1919
)]
2020
class CreateContentCommand extends Command
2121
{
22-
public function __construct(private readonly ContentService $contentService, private readonly ContentTypeService $contentTypeService, private readonly LocationService $locationService, private readonly UserService $userService, private readonly PermissionResolver $permissionResolver)
22+
public function __construct(
23+
private readonly ContentService $contentService,
24+
private readonly ContentTypeService $contentTypeService,
25+
private readonly LocationService $locationService,
26+
private readonly UserService $userService,
27+
private readonly PermissionResolver $permissionResolver
28+
)
2329
{
2430
parent::__construct();
2531
}

0 commit comments

Comments
 (0)