Passed
Push — feature/super-model ( 24c950...13c8a0 )
by axel
02:30
created
src/MalScraper/Model/General/ProducerModel.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,8 +64,9 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function __call($method, $arguments)
66 66
     {
67
-        if ($this->_error)
68
-            return $this->_error;
67
+        if ($this->_error) {
68
+                    return $this->_error;
69
+        }
69 70
         return call_user_func_array([$this, $method], $arguments);
70 71
     }
71 72
 
@@ -141,8 +142,9 @@  discard block
 block discarded – undo
141 142
     {
142 143
         $prod_id = $each_producer->href;
143 144
         $prod_id = explode('/', $prod_id);
144
-        if ($this->_type == 'anime')
145
-            return $prod_id[3];
145
+        if ($this->_type == 'anime') {
146
+                    return $prod_id[3];
147
+        }
146 148
         return $prod_id[4];
147 149
     }
148 150
 
Please login to merge, or discard this patch.
src/MalScraper/Model/MainModel.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,8 +137,9 @@
 block discarded – undo
137 137
 
138 138
     	$html = HtmlDomParser::file_get_html($model->_url)->find($area, 0)->href;
139 139
 
140
-    	if ($model->getType() == 'manga')
141
-    		return 'https://myanimelist.net'.$html.$additionalUrl;
140
+    	if ($model->getType() == 'manga') {
141
+    	    		return 'https://myanimelist.net'.$html.$additionalUrl;
142
+    	}
142 143
         return $html.$additionalUrl;
143 144
     }
144 145
 
Please login to merge, or discard this patch.