@@ 39-52 (lines=14) @@ | ||
36 | $fighter2 = $fighters->get(1); |
|
37 | $fighter3 = $fighters->get(2); |
|
38 | ||
39 | switch ($numGroup) { |
|
40 | case 1: |
|
41 | $competitor1 = $fighter1; |
|
42 | $competitor2 = $fighter2; |
|
43 | break; |
|
44 | case 2: |
|
45 | $competitor1 = $fighter2; |
|
46 | $competitor2 = $fighter3; |
|
47 | break; |
|
48 | case 3: |
|
49 | $competitor1 = $fighter3; |
|
50 | $competitor2 = $fighter1; |
|
51 | break; |
|
52 | } |
|
53 | $order = self::saveFight($group, $competitor1, $competitor2, $order); |
|
54 | } |
|
55 | } |
|
@@ 74-87 (lines=14) @@ | ||
71 | $fighter2 = $fighters->get(1); |
|
72 | $fighter3 = $fighters->get(2); |
|
73 | ||
74 | switch ($numGroup) { |
|
75 | case 1: |
|
76 | $competitor1 = $fighter1; |
|
77 | $competitor2 = $fighter2; |
|
78 | break; |
|
79 | case 2: |
|
80 | $competitor1 = $fighter2; |
|
81 | $competitor2 = $fighter3; |
|
82 | break; |
|
83 | case 3: |
|
84 | $competitor1 = $fighter3; |
|
85 | $competitor2 = $fighter1; |
|
86 | break; |
|
87 | } |
|
88 | self::saveFight($group, $competitor1, $competitor2, $order); |
|
89 | } |
|
90 |