Failed Conditions
Pull Request — master (#354)
by
unknown
07:09
created
functions.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -258,20 +258,20 @@
 block discarded – undo
258 258
 ########################################################################
259 259
 function generation($id)
260 260
 {
261
-    switch($id) {
262
-        case ($id >= 1 && $id <= 151):
263
-            return [1, "Kanto"];
264
-        case ($id >= 152 && $id <= 251):
265
-            return [2, "Johto"];
266
-        case ($id >= 252 && $id <= 386):
267
-            return [3, "Hoenn"];
268
-        case ($id >= 387 && $id <= 493):
269
-            return [4, "Sinnoh"];
270
-        case ($id >= 494 && $id <= 649):
271
-            return [5, "Teselia"];
272
-        case ($id >= 650 && $id <= 721):
273
-            return [6, "Kalos"];
274
-        case ($id >= 722 && $id <= 802):
275
-            return [7, "Alola"];
276
-    }
261
+	switch($id) {
262
+		case ($id >= 1 && $id <= 151):
263
+			return [1, "Kanto"];
264
+		case ($id >= 152 && $id <= 251):
265
+			return [2, "Johto"];
266
+		case ($id >= 252 && $id <= 386):
267
+			return [3, "Hoenn"];
268
+		case ($id >= 387 && $id <= 493):
269
+			return [4, "Sinnoh"];
270
+		case ($id >= 494 && $id <= 649):
271
+			return [5, "Teselia"];
272
+		case ($id >= 650 && $id <= 721):
273
+			return [6, "Kalos"];
274
+		case ($id >= 722 && $id <= 802):
275
+			return [7, "Alola"];
276
+	}
277 277
 }
278 278
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@
 block discarded – undo
258 258
 ########################################################################
259 259
 function generation($id)
260 260
 {
261
-    switch($id) {
261
+    switch ($id) {
262 262
         case ($id >= 1 && $id <= 151):
263 263
             return [1, "Kanto"];
264 264
         case ($id >= 152 && $id <= 251):
Please login to merge, or discard this patch.
core/process/data.loader.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -114,10 +114,10 @@
 block discarded – undo
114 114
 			$pokemon->id = $pokemon_id;
115 115
 
116 116
 			// Gen
117
-            // ----
117
+			// ----
118 118
 
119
-            $gen = generation($pokemon_id);
120
-            $pokemon->gen = $gen[0]." (".$gen[1].")";
119
+			$gen = generation($pokemon_id);
120
+			$pokemon->gen = $gen[0]." (".$gen[1].")";
121 121
 
122 122
 			// Some math
123 123
 			// ----------
Please login to merge, or discard this patch.