Skip to content

Commit d6b2961

Browse files
chore: [Many APIs] update styles (#8840)
1 parent ecf54be commit d6b2961

File tree

20 files changed

+257
-163
lines changed

20 files changed

+257
-163
lines changed

ShoppingMerchantReviews/src/V1beta/Client/MerchantReviewsServiceClient.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ final class MerchantReviewsServiceClient
8787
private const CODEGEN_NAME = 'gapic';
8888

8989
/** The default scopes required by the service. */
90-
public static $serviceScopes = [
91-
'https://www.googleapis.com/auth/content',
92-
];
90+
public static $serviceScopes = ['https://www.googleapis.com/auth/content'];
9391

9492
private static function getClientDefaults()
9593
{

ShoppingMerchantReviews/src/V1beta/Client/ProductReviewsServiceClient.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ final class ProductReviewsServiceClient
8787
private const CODEGEN_NAME = 'gapic';
8888

8989
/** The default scopes required by the service. */
90-
public static $serviceScopes = [
91-
'https://www.googleapis.com/auth/content',
92-
];
90+
public static $serviceScopes = ['https://www.googleapis.com/auth/content'];
9391

9492
private static function getClientDefaults()
9593
{

StorageControl/src/V2/Client/StorageControlClient.php

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,10 @@ public function getFolder(GetFolderRequest $request, array $callOptions = []): F
722722
*
723723
* @throws ApiException Thrown if the API call fails.
724724
*/
725-
public function getFolderIntelligenceConfig(GetFolderIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig
726-
{
725+
public function getFolderIntelligenceConfig(
726+
GetFolderIntelligenceConfigRequest $request,
727+
array $callOptions = []
728+
): IntelligenceConfig {
727729
return $this->startApiCall('GetFolderIntelligenceConfig', $request, $callOptions)->wait();
728730
}
729731

@@ -805,8 +807,10 @@ public function getManagedFolder(GetManagedFolderRequest $request, array $callOp
805807
*
806808
* @throws ApiException Thrown if the API call fails.
807809
*/
808-
public function getOrganizationIntelligenceConfig(GetOrganizationIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig
809-
{
810+
public function getOrganizationIntelligenceConfig(
811+
GetOrganizationIntelligenceConfigRequest $request,
812+
array $callOptions = []
813+
): IntelligenceConfig {
810814
return $this->startApiCall('GetOrganizationIntelligenceConfig', $request, $callOptions)->wait();
811815
}
812816

@@ -832,8 +836,10 @@ public function getOrganizationIntelligenceConfig(GetOrganizationIntelligenceCon
832836
*
833837
* @throws ApiException Thrown if the API call fails.
834838
*/
835-
public function getProjectIntelligenceConfig(GetProjectIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig
836-
{
839+
public function getProjectIntelligenceConfig(
840+
GetProjectIntelligenceConfigRequest $request,
841+
array $callOptions = []
842+
): IntelligenceConfig {
837843
return $this->startApiCall('GetProjectIntelligenceConfig', $request, $callOptions)->wait();
838844
}
839845

@@ -1080,8 +1086,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
10801086
*
10811087
* @throws ApiException Thrown if the API call fails.
10821088
*/
1083-
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
1084-
{
1089+
public function testIamPermissions(
1090+
TestIamPermissionsRequest $request,
1091+
array $callOptions = []
1092+
): TestIamPermissionsResponse {
10851093
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
10861094
}
10871095

@@ -1134,8 +1142,10 @@ public function updateAnywhereCache(UpdateAnywhereCacheRequest $request, array $
11341142
*
11351143
* @throws ApiException Thrown if the API call fails.
11361144
*/
1137-
public function updateFolderIntelligenceConfig(UpdateFolderIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig
1138-
{
1145+
public function updateFolderIntelligenceConfig(
1146+
UpdateFolderIntelligenceConfigRequest $request,
1147+
array $callOptions = []
1148+
): IntelligenceConfig {
11391149
return $this->startApiCall('UpdateFolderIntelligenceConfig', $request, $callOptions)->wait();
11401150
}
11411151

@@ -1161,8 +1171,10 @@ public function updateFolderIntelligenceConfig(UpdateFolderIntelligenceConfigReq
11611171
*
11621172
* @throws ApiException Thrown if the API call fails.
11631173
*/
1164-
public function updateOrganizationIntelligenceConfig(UpdateOrganizationIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig
1165-
{
1174+
public function updateOrganizationIntelligenceConfig(
1175+
UpdateOrganizationIntelligenceConfigRequest $request,
1176+
array $callOptions = []
1177+
): IntelligenceConfig {
11661178
return $this->startApiCall('UpdateOrganizationIntelligenceConfig', $request, $callOptions)->wait();
11671179
}
11681180

@@ -1188,8 +1200,10 @@ public function updateOrganizationIntelligenceConfig(UpdateOrganizationIntellige
11881200
*
11891201
* @throws ApiException Thrown if the API call fails.
11901202
*/
1191-
public function updateProjectIntelligenceConfig(UpdateProjectIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig
1192-
{
1203+
public function updateProjectIntelligenceConfig(
1204+
UpdateProjectIntelligenceConfigRequest $request,
1205+
array $callOptions = []
1206+
): IntelligenceConfig {
11931207
return $this->startApiCall('UpdateProjectIntelligenceConfig', $request, $callOptions)->wait();
11941208
}
11951209
}

StorageInsights/src/V1/Client/StorageInsightsClient.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,7 @@ final class StorageInsightsClient
114114
private const CODEGEN_NAME = 'gapic';
115115

116116
/** The default scopes required by the service. */
117-
public static $serviceScopes = [
118-
'https://www.googleapis.com/auth/cloud-platform',
119-
];
117+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
120118

121119
private $operationsClient;
122120

@@ -253,8 +251,12 @@ public static function reportConfigName(string $project, string $location, strin
253251
*
254252
* @return string The formatted report_detail resource.
255253
*/
256-
public static function reportDetailName(string $project, string $location, string $reportConfig, string $reportDetail): string
257-
{
254+
public static function reportDetailName(
255+
string $project,
256+
string $location,
257+
string $reportConfig,
258+
string $reportDetail
259+
): string {
258260
return self::getPathTemplate('reportDetail')->render([
259261
'project' => $project,
260262
'location' => $location,

StorageTransfer/src/V1/Client/StorageTransferServiceClient.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ final class StorageTransferServiceClient
111111
private const CODEGEN_NAME = 'gapic';
112112

113113
/** The default scopes required by the service. */
114-
public static $serviceScopes = [
115-
'https://www.googleapis.com/auth/cloud-platform',
116-
];
114+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
117115

118116
private $operationsClient;
119117

@@ -471,8 +469,10 @@ public function getAgentPool(GetAgentPoolRequest $request, array $callOptions =
471469
*
472470
* @throws ApiException Thrown if the API call fails.
473471
*/
474-
public function getGoogleServiceAccount(GetGoogleServiceAccountRequest $request, array $callOptions = []): GoogleServiceAccount
475-
{
472+
public function getGoogleServiceAccount(
473+
GetGoogleServiceAccountRequest $request,
474+
array $callOptions = []
475+
): GoogleServiceAccount {
476476
return $this->startApiCall('GetGoogleServiceAccount', $request, $callOptions)->wait();
477477
}
478478

Support/src/V2/Client/CaseAttachmentServiceClient.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ final class CaseAttachmentServiceClient
7676
private const CODEGEN_NAME = 'gapic';
7777

7878
/** The default scopes required by the service. */
79-
public static $serviceScopes = [
80-
'https://www.googleapis.com/auth/cloud-platform',
81-
];
79+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
8280

8381
private static function getClientDefaults()
8482
{

Support/src/V2/Client/CaseServiceClient.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ final class CaseServiceClient
9191
private const CODEGEN_NAME = 'gapic';
9292

9393
/** The default scopes required by the service. */
94-
public static $serviceScopes = [
95-
'https://www.googleapis.com/auth/cloud-platform',
96-
];
94+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
9795

9896
private static function getClientDefaults()
9997
{
@@ -483,8 +481,10 @@ public function listCases(ListCasesRequest $request, array $callOptions = []): P
483481
*
484482
* @throws ApiException Thrown if the API call fails.
485483
*/
486-
public function searchCaseClassifications(SearchCaseClassificationsRequest $request, array $callOptions = []): PagedListResponse
487-
{
484+
public function searchCaseClassifications(
485+
SearchCaseClassificationsRequest $request,
486+
array $callOptions = []
487+
): PagedListResponse {
488488
return $this->startApiCall('SearchCaseClassifications', $request, $callOptions);
489489
}
490490

Support/src/V2/Client/CommentServiceClient.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ final class CommentServiceClient
7979
private const CODEGEN_NAME = 'gapic';
8080

8181
/** The default scopes required by the service. */
82-
public static $serviceScopes = [
83-
'https://www.googleapis.com/auth/cloud-platform',
84-
];
82+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
8583

8684
private static function getClientDefaults()
8785
{

Support/src/V2beta/Client/CaseAttachmentServiceClient.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ final class CaseAttachmentServiceClient
8383
private const CODEGEN_NAME = 'gapic';
8484

8585
/** The default scopes required by the service. */
86-
public static $serviceScopes = [
87-
'https://www.googleapis.com/auth/cloud-platform',
88-
];
86+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
8987

9088
private static function getClientDefaults()
9189
{
@@ -177,8 +175,11 @@ public static function organizationCaseName(string $organization, string $case):
177175
*
178176
* @experimental
179177
*/
180-
public static function organizationCaseAttachmentIdName(string $organization, string $case, string $attachmentId): string
181-
{
178+
public static function organizationCaseAttachmentIdName(
179+
string $organization,
180+
string $case,
181+
string $attachmentId
182+
): string {
182183
return self::getPathTemplate('organizationCaseAttachmentId')->render([
183184
'organization' => $organization,
184185
'case' => $case,

Support/src/V2beta/Client/CaseServiceClient.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ final class CaseServiceClient
9595
private const CODEGEN_NAME = 'gapic';
9696

9797
/** The default scopes required by the service. */
98-
public static $serviceScopes = [
99-
'https://www.googleapis.com/auth/cloud-platform',
100-
];
98+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
10199

102100
private static function getClientDefaults()
103101
{
@@ -513,8 +511,10 @@ public function listCases(ListCasesRequest $request, array $callOptions = []): P
513511
*
514512
* @experimental
515513
*/
516-
public function searchCaseClassifications(SearchCaseClassificationsRequest $request, array $callOptions = []): PagedListResponse
517-
{
514+
public function searchCaseClassifications(
515+
SearchCaseClassificationsRequest $request,
516+
array $callOptions = []
517+
): PagedListResponse {
518518
return $this->startApiCall('SearchCaseClassifications', $request, $callOptions);
519519
}
520520

0 commit comments

Comments
 (0)