Skip to content

Commit 5ae27b1

Browse files
authored
Merge pull request #22 from RTLer/analysis-8n1boO
Apply fixes from StyleCI
2 parents 243f942 + 520171b commit 5ae27b1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Drivers/RestDriver.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public function requestWithExtra($inputs)
4242
return ['Authority' => $result['Authority']];
4343
} else {
4444
return [
45-
'Status' => 'error',
46-
'error' => !empty($result['Status']) ? $result['Status'] : null,
45+
'Status' => 'error',
46+
'error' => !empty($result['Status']) ? $result['Status'] : null,
4747
'errorInfo' => !empty($result['errors']) ? $result['errors'] : null,
4848
];
4949
}
@@ -64,8 +64,8 @@ public function verify($inputs)
6464
return ['Status' => 'success', 'RefID' => $result['RefID']];
6565
} else {
6666
return [
67-
'Status' => 'error',
68-
'error' => !empty($result['Status']) ? $result['Status'] : null,
67+
'Status' => 'error',
68+
'error' => !empty($result['Status']) ? $result['Status'] : null,
6969
'errorInfo' => !empty($result['errors']) ? $result['errors'] : null,
7070
];
7171
}
@@ -84,14 +84,14 @@ public function verifyWithExtra($inputs)
8484

8585
if ($result['Status'] == 100) {
8686
return [
87-
'Status' => 'success',
88-
'RefID' => $result['RefID'],
87+
'Status' => 'success',
88+
'RefID' => $result['RefID'],
8989
'ExtraDetail' => $result['ExtraDetail'],
9090
];
9191
} else {
9292
return [
93-
'Status' => 'error',
94-
'error' => !empty($result['Status']) ? $result['Status'] : null,
93+
'Status' => 'error',
94+
'error' => !empty($result['Status']) ? $result['Status'] : null,
9595
'errorInfo' => !empty($result['errors']) ? $result['errors'] : null,
9696
];
9797
}
@@ -112,8 +112,8 @@ public function unverifiedTransactions($inputs)
112112
return ['Status' => 'success', 'Authorities' => $result['Authorities']];
113113
} else {
114114
return [
115-
'Status' => 'error',
116-
'error' => !empty($result['Status']) ? $result['Status'] : null,
115+
'Status' => 'error',
116+
'error' => !empty($result['Status']) ? $result['Status'] : null,
117117
'errorInfo' => !empty($result['errors']) ? $result['errors'] : null,
118118
];
119119
}

0 commit comments

Comments
 (0)