1111
1212namespace Symfony \Component \Uid ;
1313
14+ use Symfony \Component \Uid \Exception \InvalidArgumentException ;
15+
1416/**
1517 * @author Nicolas Grekas <p@tchwork.com>
1618 */
@@ -29,41 +31,41 @@ abstract public static function isValid(string $uid): bool;
2931 /**
3032 * Creates an AbstractUid from an identifier represented in any of the supported formats.
3133 *
32- * @throws \ InvalidArgumentException When the passed value is not valid
34+ * @throws InvalidArgumentException When the passed value is not valid
3335 */
3436 abstract public static function fromString (string $ uid ): static ;
3537
3638 /**
37- * @throws \ InvalidArgumentException When the passed value is not valid
39+ * @throws InvalidArgumentException When the passed value is not valid
3840 */
3941 public static function fromBinary (string $ uid ): static
4042 {
4143 if (16 !== \strlen ($ uid )) {
42- throw new \ InvalidArgumentException ('Invalid binary uid provided. ' );
44+ throw new InvalidArgumentException ('Invalid binary uid provided. ' );
4345 }
4446
4547 return static ::fromString ($ uid );
4648 }
4749
4850 /**
49- * @throws \ InvalidArgumentException When the passed value is not valid
51+ * @throws InvalidArgumentException When the passed value is not valid
5052 */
5153 public static function fromBase58 (string $ uid ): static
5254 {
5355 if (22 !== \strlen ($ uid )) {
54- throw new \ InvalidArgumentException ('Invalid base-58 uid provided. ' );
56+ throw new InvalidArgumentException ('Invalid base-58 uid provided. ' );
5557 }
5658
5759 return static ::fromString ($ uid );
5860 }
5961
6062 /**
61- * @throws \ InvalidArgumentException When the passed value is not valid
63+ * @throws InvalidArgumentException When the passed value is not valid
6264 */
6365 public static function fromBase32 (string $ uid ): static
6466 {
6567 if (26 !== \strlen ($ uid )) {
66- throw new \ InvalidArgumentException ('Invalid base-32 uid provided. ' );
68+ throw new InvalidArgumentException ('Invalid base-32 uid provided. ' );
6769 }
6870
6971 return static ::fromString ($ uid );
@@ -72,12 +74,12 @@ public static function fromBase32(string $uid): static
7274 /**
7375 * @param string $uid A valid RFC 9562/4122 uid
7476 *
75- * @throws \ InvalidArgumentException When the passed value is not valid
77+ * @throws InvalidArgumentException When the passed value is not valid
7678 */
7779 public static function fromRfc4122 (string $ uid ): static
7880 {
7981 if (36 !== \strlen ($ uid )) {
80- throw new \ InvalidArgumentException ('Invalid RFC4122 uid provided. ' );
82+ throw new InvalidArgumentException ('Invalid RFC4122 uid provided. ' );
8183 }
8284
8385 return static ::fromString ($ uid );
0 commit comments