Passed
Push — feature/super-model ( 13c8a0...a850c4 )
by axel
01:59
created
src/MalScraper/Model/General/PeopleModel.php 1 patch
Braces   +18 added lines, -12 removed lines patch added patch discarded remove patch
@@ -40,8 +40,9 @@  discard block
 block discarded – undo
40 40
 
41 41
         parent::errorCheck($this);
42 42
 
43
-        if (!$this->_error)
44
-            $this->setBiodata();
43
+        if (!$this->_error) {
44
+                    $this->setBiodata();
45
+        }
45 46
     }
46 47
 
47 48
     /**
@@ -54,8 +55,9 @@  discard block
 block discarded – undo
54 55
      */
55 56
     public function __call($method, $arguments)
56 57
     {
57
-        if ($this->_error)
58
-            return $this->_error;
58
+        if ($this->_error) {
59
+                    return $this->_error;
60
+        }
59 61
         return call_user_func_array([$this, $method], $arguments);
60 62
     }
61 63
 
@@ -148,19 +150,23 @@  discard block
 block discarded – undo
148 150
                 $biodata = trim($biodata[1]);
149 151
             }
150 152
 
151
-            if ($type == 'given_name' || $type == 'family_name' || $type == 'birthday')
152
-                return $biodata;
153
+            if ($type == 'given_name' || $type == 'family_name' || $type == 'birthday') {
154
+                            return $biodata;
155
+            }
153 156
 
154
-            if ($type == 'alternative_name')
155
-                return explode(', ', $biodata);
157
+            if ($type == 'alternative_name') {
158
+                            return explode(', ', $biodata);
159
+            }
156 160
 
157
-            if ($type == 'favorite')
158
-                return str_replace(',', '', $biodata);
161
+            if ($type == 'favorite') {
162
+                            return str_replace(',', '', $biodata);
163
+            }
159 164
 
160 165
             if ($type == 'website') {
161 166
                 preg_match('/".+"/', $biodata[0], $biodata);
162
-                if ($biodata[0] != '"http://"')
163
-                    return str_replace('"', '', $biodata[0]);
167
+                if ($biodata[0] != '"http://"') {
168
+                                    return str_replace('"', '', $biodata[0]);
169
+                }
164 170
             }
165 171
         }
166 172
         return null;
Please login to merge, or discard this patch.