@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | public static function toDatabase($gender) |
25 | 25 | { |
26 | - return substr(((string) self::filter(strtoupper(preg_replace('/[^A-z]/', '',$gender)))), 0, 1); |
|
26 | + return substr(((string) self::filter(strtoupper(preg_replace('/[^A-z]/', '', $gender)))), 0, 1); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | public static function filter($gender) { |
@@ -38,11 +38,11 @@ discard block |
||
38 | 38 | |
39 | 39 | public static function toUser($gender) |
40 | 40 | { |
41 | - if($gender == 'M') { |
|
41 | + if ($gender == 'M') { |
|
42 | 42 | return 'Masculino'; |
43 | 43 | } |
44 | 44 | |
45 | - if($gender == 'F') { |
|
45 | + if ($gender == 'F') { |
|
46 | 46 | return 'Feminino'; |
47 | 47 | } |
48 | 48 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | public static function isSame(string $to, string $from) |
64 | 64 | { |
65 | - return (self::toDatabase($to)===self::toDatabase($from)); |
|
65 | + return (self::toDatabase($to) === self::toDatabase($from)); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | public static function isSame(string $to, string $from) |
34 | 34 | { |
35 | - return (self::toDatabase($to)===self::toDatabase($from)); |
|
35 | + return (self::toDatabase($to) === self::toDatabase($from)); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | public static function isSame(string $to, string $from) |
28 | 28 | { |
29 | - return (self::toDatabase($to)===self::toDatabase($from)); |
|
29 | + return (self::toDatabase($to) === self::toDatabase($from)); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | } |