Skip to content

Commit

Permalink
Merge pull request #22 from RTLer/analysis-8n1boO
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
RTLer authored Jan 31, 2018
2 parents 243f942 + 520171b commit 5ae27b1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Drivers/RestDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public function requestWithExtra($inputs)
return ['Authority' => $result['Authority']];
} else {
return [
'Status' => 'error',
'error' => !empty($result['Status']) ? $result['Status'] : null,
'Status' => 'error',
'error' => !empty($result['Status']) ? $result['Status'] : null,
'errorInfo' => !empty($result['errors']) ? $result['errors'] : null,
];
}
Expand All @@ -64,8 +64,8 @@ public function verify($inputs)
return ['Status' => 'success', 'RefID' => $result['RefID']];
} else {
return [
'Status' => 'error',
'error' => !empty($result['Status']) ? $result['Status'] : null,
'Status' => 'error',
'error' => !empty($result['Status']) ? $result['Status'] : null,
'errorInfo' => !empty($result['errors']) ? $result['errors'] : null,
];
}
Expand All @@ -84,14 +84,14 @@ public function verifyWithExtra($inputs)

if ($result['Status'] == 100) {
return [
'Status' => 'success',
'RefID' => $result['RefID'],
'Status' => 'success',
'RefID' => $result['RefID'],
'ExtraDetail' => $result['ExtraDetail'],
];
} else {
return [
'Status' => 'error',
'error' => !empty($result['Status']) ? $result['Status'] : null,
'Status' => 'error',
'error' => !empty($result['Status']) ? $result['Status'] : null,
'errorInfo' => !empty($result['errors']) ? $result['errors'] : null,
];
}
Expand All @@ -112,8 +112,8 @@ public function unverifiedTransactions($inputs)
return ['Status' => 'success', 'Authorities' => $result['Authorities']];
} else {
return [
'Status' => 'error',
'error' => !empty($result['Status']) ? $result['Status'] : null,
'Status' => 'error',
'error' => !empty($result['Status']) ? $result['Status'] : null,
'errorInfo' => !empty($result['errors']) ? $result['errors'] : null,
];
}
Expand Down

0 comments on commit 5ae27b1

Please sign in to comment.