Passed
Push — feature/super-model ( 13c8a0...a850c4 )
by axel
01:59
created
src/MalScraper/Model/Additional/StatModel.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,8 +52,9 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function __call($method, $arguments)
54 54
     {
55
-        if ($this->_error)
56
-            return $this->_error;
55
+        if ($this->_error) {
56
+                    return $this->_error;
57
+        }
57 58
         return call_user_func_array([$this, $method], $arguments);
58 59
     }
59 60
 
@@ -151,8 +152,9 @@  discard block
 block discarded – undo
151 152
         $user_area = $this->_parser->find('.table-recently-updated', 0);
152 153
         if ($user_area) {
153 154
             foreach ($user_area->find('tr') as $each_user) {
154
-                if (!$each_user->find('td', 0)->find('div', 0))
155
-                    continue;
155
+                if (!$each_user->find('td', 0)->find('div', 0)) {
156
+                                    continue;
157
+                }
156 158
 
157 159
                 $temp_user = [];
158 160
 
Please login to merge, or discard this patch.
src/MalScraper/Model/Additional/PeoplePictureModel.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,9 @@
 block discarded – undo
52 52
      */
53 53
     public function __call($method, $arguments)
54 54
     {
55
-        if ($this->_error)
56
-            return $this->_error;
55
+        if ($this->_error) {
56
+                    return $this->_error;
57
+        }
57 58
         return call_user_func_array([$this, $method], $arguments);
58 59
     }
59 60
 
Please login to merge, or discard this patch.
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.