Passed
Push — main ( 8285d8...9556f0 )
by José
03:31
created
src/Entity/User.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     private function validateString($value): string
32 32
     {
33
-        if( !is_string($value) || Helper::isEmptyOrNull($value)) {
33
+        if (!is_string($value) || Helper::isEmptyOrNull($value)) {
34 34
             $value = '';
35 35
         }
36 36
 
@@ -39,12 +39,12 @@  discard block
 block discarded – undo
39 39
 
40 40
     public function getId(): string
41 41
     {
42
-        return $this->validateString( $this->getValueByKey($this->response, 'id') );
42
+        return $this->validateString($this->getValueByKey($this->response, 'id'));
43 43
     }
44 44
 
45 45
     public function getUsername(): string
46 46
     {
47
-        return $this->validateString( $this->getValueByKey($this->response, 'username') );
47
+        return $this->validateString($this->getValueByKey($this->response, 'username'));
48 48
     }
49 49
 
50 50
     public function isPatron(): bool
@@ -64,37 +64,37 @@  discard block
 block discarded – undo
64 64
 
65 65
     public function getCountry(): string
66 66
     {
67
-        return $this->validateString( $this->getValueByKey($this->response, 'profile.country') );
67
+        return $this->validateString($this->getValueByKey($this->response, 'profile.country'));
68 68
     }
69 69
 
70 70
     public function getLocation(): string
71 71
     {
72
-        return $this->validateString( $this->getValueByKey($this->response, 'profile.location') );
72
+        return $this->validateString($this->getValueByKey($this->response, 'profile.location'));
73 73
     }
74 74
 
75 75
     public function getBio(): string
76 76
     {
77
-        return $this->validateString( $this->getValueByKey($this->response, 'profile.bio') );
77
+        return $this->validateString($this->getValueByKey($this->response, 'profile.bio'));
78 78
     }
79 79
 
80 80
     public function getFirstName(): string
81 81
     {
82
-        return $this->validateString( $this->getValueByKey($this->response, 'profile.firstName') );
82
+        return $this->validateString($this->getValueByKey($this->response, 'profile.firstName'));
83 83
     }
84 84
 
85 85
     public function getLastName(): string
86 86
     {
87
-        return $this->validateString( $this->getValueByKey($this->response, 'profile.lastName') );
87
+        return $this->validateString($this->getValueByKey($this->response, 'profile.lastName'));
88 88
     }
89 89
 
90 90
     public function getLinks(): string
91 91
     {
92
-        return $this->validateString( $this->getValueByKey($this->response, 'profile.links') );
92
+        return $this->validateString($this->getValueByKey($this->response, 'profile.links'));
93 93
     }
94 94
 
95 95
     public function getUrl(): string
96 96
     {
97
-        return $this->validateString( $this->getValueByKey($this->response, 'url') );
97
+        return $this->validateString($this->getValueByKey($this->response, 'url'));
98 98
     }
99 99
 
100 100
     public function getCompletionRate(): int
Please login to merge, or discard this patch.