Passed
Branch feature/super-model (24c950)
by axel
02:55
created
src/MalScraper/Helper/Helper.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,8 +193,10 @@
 block discarded – undo
193 193
 	    if ($day >= $spring_starts && $day <= $spring_ends) :
194 194
 	        $season = 'spring'; elseif ($day >= $summer_starts && $day <= $summer_ends) :
195 195
 	        $season = 'summer'; elseif ($day >= $autumn_starts && $day <= $autumn_ends) :
196
-	        $season = 'fall'; else :
196
+	        $season = 'fall'; else {
197
+	            :
197 198
 	        $season = 'winter';
199
+	        }
198 200
 	    endif;
199 201
 
200 202
 	    return $season;
Please login to merge, or discard this patch.
src/MalScraper/MalScraper2.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,8 +123,9 @@
 block discarded – undo
123 123
         }
124 124
 
125 125
         // if to api function enabled
126
-        if ($this->_to_api === true)
127
-            return Helper::response($result);
126
+        if ($this->_to_api === true) {
127
+                    return Helper::response($result);
128
+        }
128 129
         return Helper::toResponse($result);
129 130
     }
130 131
 
Please login to merge, or discard this patch.
src/MalScraper/Model/CharacterStaffModel.php 1 patch
Braces   +9 added lines, -6 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
 
@@ -117,8 +118,9 @@  discard block
 block discarded – undo
117 118
                 }
118 119
 
119 120
                 $char_table = $char_table->next_sibling();
120
-                if ($char_table->tag == 'br' || $char_table->tag == 'a' || $char_table->tag == 'h2' || $char_table->tag == 'div')
121
-                    break;
121
+                if ($char_table->tag == 'br' || $char_table->tag == 'a' || $char_table->tag == 'h2' || $char_table->tag == 'div') {
122
+                                    break;
123
+                }
122 124
                 $character_index++;
123 125
             }
124 126
         }
@@ -249,8 +251,9 @@  discard block
 block discarded – undo
249 251
                     $staff[$staff_index]['role'] = self::getStaffRole($staff_name_area);
250 252
 
251 253
                     $staff_table = $staff_table->next_sibling();
252
-                    if (!$staff_table)
253
-                        break;
254
+                    if (!$staff_table) {
255
+                                            break;
256
+                    }
254 257
                     $staff_index++;
255 258
                 }
256 259
             }
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
 }
145 146
\ No newline at end of file
Please login to merge, or discard this patch.
src/MalScraper/Model/PictureModel.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/StudioProducerModel.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,9 @@
 block discarded – undo
51 51
      */
52 52
     public function __call($method, $arguments)
53 53
     {
54
-        if ($this->_error)
55
-            return $this->_error;
54
+        if ($this->_error) {
55
+                    return $this->_error;
56
+        }
56 57
         return call_user_func_array([$this, $method], $arguments);
57 58
     }
58 59
 
Please login to merge, or discard this patch.
src/MalScraper/Model/CharacterPictureModel.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,9 @@
 block discarded – undo
43 43
      */
44 44
     public function __call($method, $arguments)
45 45
     {
46
-        if ($this->_error)
47
-            return $this->_error;
46
+        if ($this->_error) {
47
+                    return $this->_error;
48
+        }
48 49
         return call_user_func_array([$this, $method], $arguments);
49 50
     }
50 51
 
Please login to merge, or discard this patch.
src/MalScraper/Model/InfoModel.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/PeoplePictureModel.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,9 @@
 block discarded – undo
43 43
      */
44 44
     public function __call($method, $arguments)
45 45
     {
46
-        if ($this->_error)
47
-            return $this->_error;
46
+        if ($this->_error) {
47
+                    return $this->_error;
48
+        }
48 49
         return call_user_func_array([$this, $method], $arguments);
49 50
     }
50 51
 
Please login to merge, or discard this patch.