Code Duplication    Length = 12-12 lines in 4 locations

src/Loader/Statistics/AlertStatisticsLoader.php 4 locations

@@ 57-68 (lines=12) @@
54
            'value' => '1'
55
        ]);
56
57
        if (! empty($post['ResultServer'])) {
58
            if ($this->inputValidator->validatePostVars(
59
                'ResultServer',
60
                $post['ResultServer']
61
            ) === true) {
62
                $queryObject->addWhere([
63
                    'col'   => 'ResultServer',
64
                    'value' => $post['ResultServer']
65
                ]);
66
                $redisKey .= ":Server-{$post['ResultServer']}";
67
            }
68
        }
69
70
        if (! empty($post['ResultWinner'])) {
71
            if ($this->inputValidator->validatePostVars(
@@ 70-81 (lines=12) @@
67
            }
68
        }
69
70
        if (! empty($post['ResultWinner'])) {
71
            if ($this->inputValidator->validatePostVars(
72
                'ResultWinner',
73
                $post['ResultWinner']
74
            ) === true) {
75
                $queryObject->addWhere([
76
                    'col'   => 'ResultWinner',
77
                    'value' => $post['ResultWinner']
78
                ]);
79
                $redisKey .= ":Winner-{$post['ResultWinner']}";
80
            }
81
        }
82
83
        if (! empty($post['ResultAlertCont'])) {
84
            if ($this->inputValidator->validatePostVars(
@@ 83-94 (lines=12) @@
80
            }
81
        }
82
83
        if (! empty($post['ResultAlertCont'])) {
84
            if ($this->inputValidator->validatePostVars(
85
                'ResultAlertCont',
86
                $post['ResultAlertCont']
87
            ) === true) {
88
                $queryObject->addWhere([
89
                    'col'   => 'ResultAlertCont',
90
                    'value' => $post['ResultAlertCont']
91
                ]);
92
                $redisKey .= ":Cont-{$post['ResultAlertCont']}";
93
            }
94
        }
95
96
        if (! empty($post['ResultDomination'])) {
97
            if ($this->inputValidator->validatePostVars(
@@ 96-107 (lines=12) @@
93
            }
94
        }
95
96
        if (! empty($post['ResultDomination'])) {
97
            if ($this->inputValidator->validatePostVars(
98
                'ResultDomination',
99
                $post['ResultDomination']
100
            ) === true) {
101
                $queryObject->addWhere([
102
                    'col'   => 'ResultDomination',
103
                    'value' => $post['ResultDomination']
104
                ]);
105
                $redisKey .= ":Domination-{$post['ResultDomination']}";
106
            }
107
        }
108
109
        if ($this->checkRedis($redisKey)) {
110
            return $this->getFromRedis($redisKey);