Code Duplication    Length = 11-11 lines in 2 locations

src/database/seeds/BantenprovSktmSeederMasterSktm.php 1 location

@@ 85-95 (lines=11) @@
82
        printf($this->GRN.$text.$this->NC);
83
    }
84
    /* function read CSV file */
85
    protected function readCSV()
86
    {
87
        $file = fopen(database_path("seeds/".$this->fileName), "r");
88
        $all_data = array();
89
        $row = 1;
90
        while(($data = fgetcsv($file, 1000, ",")) !== FALSE){
91
            $all_data[] = [
92
                'nama' => $data[0],
93
                'instansi' => $data[1],
94
                'nilai' => $data[2],
95
                'user_id' => $data[3],];
96
        }
97
        fclose($file);
98
        return  $all_data;

src/database/seeds/BantenprovSktmSeederSktm.php 1 location

@@ 88-98 (lines=11) @@
85
        printf($this->GRN.$text.$this->NC);
86
    }
87
    /* function read CSV file */
88
    protected function readCSV()
89
    {
90
        $file = fopen(database_path("seeds/".$this->fileName), "r");
91
        $all_data = array();
92
        $row = 1;
93
        while(($data = fgetcsv($file, 1000, ",")) !== FALSE){
94
            $all_data[] = [
95
                'nomor_un' => $data[0],
96
                'master_sktm_id' => $data[1],
97
                'no_sktm' => $data[2],
98
                'nilai' => $data[3],
99
                'user_id' => $data[4],
100
            ];
101
        }