Code Duplication    Length = 3-3 lines in 3 locations

src/Service/PostVote.php 3 locations

@@ 800-802 (lines=3) @@
797
                            // die('---');
798
                            $col = new Column\Select($querySelect, $v[0]['name']);
799
                            //$col->setType(new Type\Image());
800
                            if (strpos($v[0]['data']['fileextension'], 'png') !== false) {
801
                                $col->addFormatter($imageFormatter);
802
                            }
803
                            if (strpos($v[0]['data']['fileextension'], 'mp4') !== false) {
804
                                $col->addFormatter(new Formatter\Link());
805
                            }
@@ 803-805 (lines=3) @@
800
                            if (strpos($v[0]['data']['fileextension'], 'png') !== false) {
801
                                $col->addFormatter($imageFormatter);
802
                            }
803
                            if (strpos($v[0]['data']['fileextension'], 'mp4') !== false) {
804
                                $col->addFormatter(new Formatter\Link());
805
                            }
806
                            if (strpos($v[0]['data']['fileextension'], 'pdf') !== false) {
807
                                $col->addFormatter(new Formatter\Link());
808
                            }
@@ 806-808 (lines=3) @@
803
                            if (strpos($v[0]['data']['fileextension'], 'mp4') !== false) {
804
                                $col->addFormatter(new Formatter\Link());
805
                            }
806
                            if (strpos($v[0]['data']['fileextension'], 'pdf') !== false) {
807
                                $col->addFormatter(new Formatter\Link());
808
                            }
809
                        } else {
810
                            $col = new Column\Select($querySelect, $v[0]['name']);
811
                        }