@@ -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 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | public static function isSame(string $to, string $from) |
| 30 | 30 | { |
| 31 | - return (self::toDatabase($to)===self::toDatabase($from)); |
|
| 31 | + return (self::toDatabase($to) === self::toDatabase($from)); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | public static function isSame(string $to, string $from) |
| 30 | 30 | { |
| 31 | - return (self::toDatabase($to)===self::toDatabase($from)); |
|
| 31 | + return (self::toDatabase($to) === self::toDatabase($from)); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | } |