Code Duplication    Length = 5-5 lines in 3 locations

src/baokim/PaymentGateway.php 1 location

@@ 335-339 (lines=5) @@
332
        $requestMethod = $commandRequestMethods[$command];
333
        $data = [];
334
335
        foreach ($params as $param) {
336
            if (($value = call_user_func([$request, $requestMethod], $param)) !== null) {
337
                $data[$param] = $value;
338
            }
339
        }
340
341
        return $data;
342
    }

src/momo/PaymentGateway.php 1 location

@@ 98-102 (lines=5) @@
95
        $requestMethod = $commandRequestMethods[$command];
96
97
        $data = [];
98
        foreach ($params as $param) {
99
            if (($value = call_user_func([$request, $requestMethod], $param)) !== null) {
100
                $data[$param] = $value;
101
            }
102
        }
103
104
        return $data;
105
    }

src/vtcpay/PaymentGateway.php 1 location

@@ 137-141 (lines=5) @@
134
135
        $data = [];
136
137
        foreach ($params as $param) {
138
            if (($value = call_user_func([$request, $requestMethod], $param)) !== null) {
139
                $data[$param] = $value;
140
            }
141
        }
142
143
        return $data;
144
    }