@@ -20,8 +20,7 @@ |
||
| 20 | 20 | $this->check_exists($fname); |
| 21 | 21 | |
| 22 | 22 | $key = $this->load($fname); |
| 23 | - } |
|
| 24 | - catch (\Exception $e) |
|
| 23 | + } catch (\Exception $e) |
|
| 25 | 24 | { |
| 26 | 25 | throw new Exception\Runtime('The file with the '.$type.' key was '.$e->getMessage().'!', -98); |
| 27 | 26 | } |
@@ -114,7 +114,9 @@ discard block |
||
| 114 | 114 | */ |
| 115 | 115 | protected function sign($options) |
| 116 | 116 | { |
| 117 | - if (isset($this->Sign)) return; |
|
| 117 | + if (isset($this->Sign)) { |
|
| 118 | + return; |
|
| 119 | + } |
|
| 118 | 120 | |
| 119 | 121 | if (isset($options['UseSign']) && ($options['UseSign'] === true)) |
| 120 | 122 | { |
@@ -143,8 +145,7 @@ discard block |
||
| 143 | 145 | try |
| 144 | 146 | { |
| 145 | 147 | $pkeyid = (new Key())->get($options['ProviderPKey'], 'private'); |
| 146 | - } |
|
| 147 | - catch (\Exception $e) |
|
| 148 | + } catch (\Exception $e) |
|
| 148 | 149 | { |
| 149 | 150 | return null; |
| 150 | 151 | } |