22declare (strict_types=1 );
33namespace ParagonIE \ConstantTime ;
44
5+ use TypeError ;
6+
57/**
68 * Copyright (c) 2016 - 2022 Paragon Initiative Enterprises.
79 * Copyright (c) 2014 Steve "Sc00bz" Thomas (steve at tobtu dot com)
@@ -36,7 +38,7 @@ abstract class Encoding
3638 *
3739 * @param string $str
3840 * @return string
39- * @throws \ TypeError
41+ * @throws TypeError
4042 */
4143 public static function base32Encode (string $ str ): string
4244 {
@@ -48,7 +50,7 @@ public static function base32Encode(string $str): string
4850 *
4951 * @param string $str
5052 * @return string
51- * @throws \ TypeError
53+ * @throws TypeError
5254 */
5355 public static function base32EncodeUpper (string $ str ): string
5456 {
@@ -60,7 +62,7 @@ public static function base32EncodeUpper(string $str): string
6062 *
6163 * @param string $str
6264 * @return string
63- * @throws \ TypeError
65+ * @throws TypeError
6466 */
6567 public static function base32Decode (string $ str ): string
6668 {
@@ -72,7 +74,7 @@ public static function base32Decode(string $str): string
7274 *
7375 * @param string $str
7476 * @return string
75- * @throws \ TypeError
77+ * @throws TypeError
7678 */
7779 public static function base32DecodeUpper (string $ str ): string
7880 {
@@ -84,7 +86,7 @@ public static function base32DecodeUpper(string $str): string
8486 *
8587 * @param string $str
8688 * @return string
87- * @throws \ TypeError
89+ * @throws TypeError
8890 */
8991 public static function base32HexEncode (string $ str ): string
9092 {
@@ -96,7 +98,7 @@ public static function base32HexEncode(string $str): string
9698 *
9799 * @param string $str
98100 * @return string
99- * @throws \ TypeError
101+ * @throws TypeError
100102 */
101103 public static function base32HexEncodeUpper (string $ str ): string
102104 {
@@ -108,7 +110,7 @@ public static function base32HexEncodeUpper(string $str): string
108110 *
109111 * @param string $str
110112 * @return string
111- * @throws \ TypeError
113+ * @throws TypeError
112114 */
113115 public static function base32HexDecode (string $ str ): string
114116 {
@@ -120,7 +122,7 @@ public static function base32HexDecode(string $str): string
120122 *
121123 * @param string $str
122124 * @return string
123- * @throws \ TypeError
125+ * @throws TypeError
124126 */
125127 public static function base32HexDecodeUpper (string $ str ): string
126128 {
@@ -132,7 +134,7 @@ public static function base32HexDecodeUpper(string $str): string
132134 *
133135 * @param string $str
134136 * @return string
135- * @throws \ TypeError
137+ * @throws TypeError
136138 */
137139 public static function base64Encode (string $ str ): string
138140 {
@@ -144,7 +146,7 @@ public static function base64Encode(string $str): string
144146 *
145147 * @param string $str
146148 * @return string
147- * @throws \ TypeError
149+ * @throws TypeError
148150 */
149151 public static function base64Decode (string $ str ): string
150152 {
@@ -157,7 +159,7 @@ public static function base64Decode(string $str): string
157159 * Base64 character set "./[A-Z][a-z][0-9]"
158160 * @param string $str
159161 * @return string
160- * @throws \ TypeError
162+ * @throws TypeError
161163 */
162164 public static function base64EncodeDotSlash (string $ str ): string
163165 {
@@ -172,7 +174,7 @@ public static function base64EncodeDotSlash(string $str): string
172174 * @param string $str
173175 * @return string
174176 * @throws \RangeException
175- * @throws \ TypeError
177+ * @throws TypeError
176178 */
177179 public static function base64DecodeDotSlash (string $ str ): string
178180 {
@@ -185,7 +187,7 @@ public static function base64DecodeDotSlash(string $str): string
185187 * Base64 character set "[.-9][A-Z][a-z]" or "./[0-9][A-Z][a-z]"
186188 * @param string $str
187189 * @return string
188- * @throws \ TypeError
190+ * @throws TypeError
189191 */
190192 public static function base64EncodeDotSlashOrdered (string $ str ): string
191193 {
@@ -200,7 +202,7 @@ public static function base64EncodeDotSlashOrdered(string $str): string
200202 * @param string $str
201203 * @return string
202204 * @throws \RangeException
203- * @throws \ TypeError
205+ * @throws TypeError
204206 */
205207 public static function base64DecodeDotSlashOrdered (string $ str ): string
206208 {
@@ -213,7 +215,7 @@ public static function base64DecodeDotSlashOrdered(string $str): string
213215 *
214216 * @param string $bin_string (raw binary)
215217 * @return string
216- * @throws \ TypeError
218+ * @throws TypeError
217219 */
218220 public static function hexEncode (string $ bin_string ): string
219221 {
@@ -239,7 +241,7 @@ public static function hexDecode(string $hex_string): string
239241 *
240242 * @param string $bin_string (raw binary)
241243 * @return string
242- * @throws \ TypeError
244+ * @throws TypeError
243245 */
244246 public static function hexEncodeUpper (string $ bin_string ): string
245247 {
0 commit comments