Code Duplication    Length = 8-8 lines in 2 locations

models/Tutorial.php 2 locations

@@ 45-52 (lines=8) @@
42
        //check requirements of new state
43
        $advance = false;
44
        switch ($this->state) {
45
            case 0:
46
                //teljesits 1 megbizast
47
                foreach ($this->location->missions as $mission) {
48
                    if ($mission->routine > 0) {
49
                        $advance = true;
50
                    }
51
                }
52
                break;
53
            case 1:
54
                if ($player->dollar >= 10) {
55
                    $advance = true;
@@ 63-70 (lines=8) @@
60
                    $advance = true;
61
                }
62
                break;
63
            case 3:
64
                //1 megbizasnal 100% rutin
65
                foreach ($this->location->missions as $mission) {
66
                    if ($mission->routine >= 100) {
67
                        $advance = true;
68
                    }
69
                }
70
                break;
71
            case 4:
72
                $advance = true;
73
                foreach ($this->location->missions as $mission) {