@@ -136,7 +136,9 @@ |
||
136 | 136 | */ |
137 | 137 | protected function sign($options) |
138 | 138 | { |
139 | - if (isset($this->Sign)) return; |
|
139 | + if (isset($this->Sign)) { |
|
140 | + return; |
|
141 | + } |
|
140 | 142 | |
141 | 143 | if (isset($options['UseSign']) && ($options['UseSign'] === true)) |
142 | 144 | { |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | if ($result == -1) |
61 | 61 | { |
62 | 62 | throw new Exception\Sign('Error verify signature of request!', -96); |
63 | - } |
|
64 | - elseif ($result == 0) |
|
63 | + } elseif ($result == 0) |
|
65 | 64 | { |
66 | 65 | throw new Exception\Sign('Signature of request is incorrect!', -95); |
67 | 66 | } |
@@ -88,8 +87,7 @@ discard block |
||
88 | 87 | ); |
89 | 88 | |
90 | 89 | return strtoupper(bin2hex($sign)); |
91 | - } |
|
92 | - catch (\Exception $e) |
|
90 | + } catch (\Exception $e) |
|
93 | 91 | { |
94 | 92 | return null; |
95 | 93 | } |