Skip to content

Commit db499ec

Browse files
authored
Fix CS (#1356)
1 parent b9360a0 commit db499ec

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

src/Input/InvocationRequest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,14 @@ public function request(): Request
131131
throw new InvalidArgument(sprintf('Invalid parameter "InvocationType" for "%s". The value "%s" is not a valid "InvocationType".', __CLASS__, $this->invocationType));
132132
}
133133
$headers['X-Amz-Invocation-Type'] = $this->invocationType;
134-
}if (null !== $this->logType) {
134+
}
135+
if (null !== $this->logType) {
135136
if (!LogType::exists($this->logType)) {
136137
throw new InvalidArgument(sprintf('Invalid parameter "LogType" for "%s". The value "%s" is not a valid "LogType".', __CLASS__, $this->logType));
137138
}
138139
$headers['X-Amz-Log-Type'] = $this->logType;
139-
}if (null !== $this->clientContext) {
140+
}
141+
if (null !== $this->clientContext) {
140142
$headers['X-Amz-Client-Context'] = $this->clientContext;
141143
}
142144

src/Input/ListFunctionsRequest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,17 @@ public function request(): Request
100100
$query = [];
101101
if (null !== $this->masterRegion) {
102102
$query['MasterRegion'] = $this->masterRegion;
103-
}if (null !== $this->functionVersion) {
103+
}
104+
if (null !== $this->functionVersion) {
104105
if (!FunctionVersion::exists($this->functionVersion)) {
105106
throw new InvalidArgument(sprintf('Invalid parameter "FunctionVersion" for "%s". The value "%s" is not a valid "FunctionVersion".', __CLASS__, $this->functionVersion));
106107
}
107108
$query['FunctionVersion'] = $this->functionVersion;
108-
}if (null !== $this->marker) {
109+
}
110+
if (null !== $this->marker) {
109111
$query['Marker'] = $this->marker;
110-
}if (null !== $this->maxItems) {
112+
}
113+
if (null !== $this->maxItems) {
111114
$query['MaxItems'] = (string) $this->maxItems;
112115
}
113116

src/Input/ListLayerVersionsRequest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,14 @@ public function request(): Request
122122
throw new InvalidArgument(sprintf('Invalid parameter "CompatibleRuntime" for "%s". The value "%s" is not a valid "Runtime".', __CLASS__, $this->compatibleRuntime));
123123
}
124124
$query['CompatibleRuntime'] = $this->compatibleRuntime;
125-
}if (null !== $this->marker) {
125+
}
126+
if (null !== $this->marker) {
126127
$query['Marker'] = $this->marker;
127-
}if (null !== $this->maxItems) {
128+
}
129+
if (null !== $this->maxItems) {
128130
$query['MaxItems'] = (string) $this->maxItems;
129-
}if (null !== $this->compatibleArchitecture) {
131+
}
132+
if (null !== $this->compatibleArchitecture) {
130133
if (!Architecture::exists($this->compatibleArchitecture)) {
131134
throw new InvalidArgument(sprintf('Invalid parameter "CompatibleArchitecture" for "%s". The value "%s" is not a valid "Architecture".', __CLASS__, $this->compatibleArchitecture));
132135
}

src/Input/ListVersionsByFunctionRequest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ public function request(): Request
8282
$query = [];
8383
if (null !== $this->marker) {
8484
$query['Marker'] = $this->marker;
85-
}if (null !== $this->maxItems) {
85+
}
86+
if (null !== $this->maxItems) {
8687
$query['MaxItems'] = (string) $this->maxItems;
8788
}
8889

0 commit comments

Comments
 (0)