@@ -133,7 +133,7 @@ |
||
133 | 133 | /** |
134 | 134 | * Generate a random string of length. SECURE |
135 | 135 | * @param $length |
136 | - * @return null|string |
|
136 | + * @return string |
|
137 | 137 | * @throws \twhiston\twLib\TwLibException if string is generated non securely or result is null |
138 | 138 | */ |
139 | 139 | static public function String($length) |
@@ -75,8 +75,7 @@ |
||
75 | 75 | |
76 | 76 | $instance = Instantiate::instantiate($class, $args); |
77 | 77 | |
78 | - } |
|
79 | - catch (\Exception $e) { |
|
78 | + } catch (\Exception $e) { |
|
80 | 79 | throw $e; |
81 | 80 | } |
82 | 81 |