Code Duplication    Length = 12-12 lines in 2 locations

src/onepay/PaymentGateway.php 1 location

@@ 177-188 (lines=12) @@
174
    /**
175
     * @inheritdoc
176
     */
177
    protected function getVerifyRequestData($command, \yii\web\Request $request): array
178
    {
179
        $data = [];
180
181
        foreach ($request->get() as $param => $value) {
182
            if (strpos($param, 'vpc_') === 0) {
183
                $data[$param] = $value;
184
            }
185
        }
186
187
        return $data;
188
    }
189
190
}
191

src/vnpayment/PaymentGateway.php 1 location

@@ 129-140 (lines=12) @@
126
    /**
127
     * @inheritdoc
128
     */
129
    protected function getVerifyRequestData($command, \yii\web\Request $request): array
130
    {
131
        $data = [];
132
133
        foreach ($request->get() as $param => $value) {
134
            if (strpos($param, 'vnp_') === 0) {
135
                $data[$param] = $value;
136
            }
137
        }
138
139
        return $data;
140
    }
141
142
}
143