@@ -43,17 +43,17 @@ discard block |
||
43 | 43 | |
44 | 44 | public function IsPersianNumber(string $number): bool |
45 | 45 | { |
46 | - return (bool)preg_match("/(^[" . self::$persian_number_codepoints . "]+$)/u", $number); |
|
46 | + return (bool) preg_match("/(^[" . self::$persian_number_codepoints . "]+$)/u", $number); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | public function IsArabicNumber(string $number): bool |
50 | 50 | { |
51 | - return (bool)preg_match("/(^[" . self::$arabic_numbers_codepoints . "]+$)/u", $number); |
|
51 | + return (bool) preg_match("/(^[" . self::$arabic_numbers_codepoints . "]+$)/u", $number); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | public function IsPersianOrArabicNumber(string $number): bool |
55 | 55 | { |
56 | - return (bool)preg_match("/(^[" . |
|
56 | + return (bool) preg_match("/(^[" . |
|
57 | 57 | self::$arabic_numbers_codepoints . |
58 | 58 | self::$persian_number_codepoints . |
59 | 59 | "]+$)/u", $number); |
@@ -61,12 +61,12 @@ discard block |
||
61 | 61 | |
62 | 62 | public function IsEmail(string $email): bool |
63 | 63 | { |
64 | - return (bool)filter_var($email, FILTER_VALIDATE_EMAIL); |
|
64 | + return (bool) filter_var($email, FILTER_VALIDATE_EMAIL); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | public function IsCellphone(string $number): bool |
68 | 68 | { |
69 | - return (bool)preg_match('/^(^((98)|(\+98)|0)?(9){1}[0-9]{9})+$/', $number); |
|
69 | + return (bool) preg_match('/^(^((98)|(\+98)|0)?(9){1}[0-9]{9})+$/', $number); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | public function IsIban(string $value): bool |
@@ -148,11 +148,11 @@ discard block |
||
148 | 148 | |
149 | 149 | public function IsPostalCode(string $value): bool |
150 | 150 | { |
151 | - return (bool)preg_match("/^(\d{5}-?\d{5})$/", $value); |
|
151 | + return (bool) preg_match("/^(\d{5}-?\d{5})$/", $value); |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | public function IsPersianText(string $value): bool |
155 | 155 | { |
156 | - return (bool)preg_match("/^[\x{600}-\x{6FF}\x{200c}\x{064b}\x{064d}\x{064c}\x{064e}\x{064f}\x{0650}\x{0651}\x{002E}\s]+$/u", $value); |
|
156 | + return (bool) preg_match("/^[\x{600}-\x{6FF}\x{200c}\x{064b}\x{064d}\x{064c}\x{064e}\x{064f}\x{0650}\x{0651}\x{002E}\s]+$/u", $value); |
|
157 | 157 | } |
158 | 158 | } |