Code Duplication    Length = 4-4 lines in 2 locations

src/Kunstmaan/GeneratorBundle/Command/KunstmaanGenerateCommand.php 2 locations

@@ 399-402 (lines=4) @@
396
        try {
397
            $data = Yaml::parse(file_get_contents($dir.$file));
398
399
            if (array_key_exists('kunstmaan_page_part', $data)) {
400
                //Get rid of the bundle config lines
401
                $data = array_values(array_values(array_values($data)[0])[0])[0];
402
            }
403
404
            $info = [
405
                'name' => $data['name'],
@@ 933-936 (lines=4) @@
930
        try {
931
            $data = Yaml::parse(file_get_contents($dir.$file));
932
933
            if (array_key_exists('kunstmaan_page_part', $data)) {
934
                //Get rid of the bundle config lines
935
                $data = array_values(array_values(array_values($data)[0])[0])[0];
936
            }
937
938
            // Parse contexts
939
            $contexts = [];