Passed
Branch feature/super-model (b37eae)
by axel
03:34 queued 01:35
created
src/MalScraper/Helper/Helper.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
             $result['status_message'] = self::toResponse($response);
162 162
             $result['data'] = [];
163 163
         } else {
164
-            header('HTTP/1.1 '. 200);
164
+            header('HTTP/1.1 '.200);
165 165
             $result['status'] = 200;
166 166
             $result['status_message'] = 'Success';
167 167
             $result['data'] = self::superEncode($response);
Please login to merge, or discard this patch.
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,9 +127,15 @@
 block discarded – undo
127 127
     {
128 128
         $currentMonth = date('m');
129 129
 
130
-        if ($currentMonth >= '01' && $currentMonth < '04') return 'winter';
131
-        if ($currentMonth >= '04' && $currentMonth < '07') return 'spring';
132
-        if ($currentMonth >= '07' && $currentMonth < '10') return 'summer';
130
+        if ($currentMonth >= '01' && $currentMonth < '04') {
131
+            return 'winter';
132
+        }
133
+        if ($currentMonth >= '04' && $currentMonth < '07') {
134
+            return 'spring';
135
+        }
136
+        if ($currentMonth >= '07' && $currentMonth < '10') {
137
+            return 'summer';
138
+        }
133 139
         return 'autumn';
134 140
     }
135 141
 
Please login to merge, or discard this patch.