Code Duplication    Length = 16-20 lines in 2 locations

src/RSSFeed/simplepie/simplepie_1.3.1.mini.php 2 locations

@@ 7874-7889 (lines=16) @@
7871
                                    $keywords = array_values(array_unique($keywords));
7872
                                }
7873
                            }
7874
                            elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['keywords']))
7875
                            {
7876
                                if (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['keywords'][0]['data']))
7877
                                {
7878
                                    $temp = explode(',', $this->sanitize($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['keywords'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT));
7879
                                    foreach ($temp as $word)
7880
                                    {
7881
                                        $keywords[] = trim($word);
7882
                                    }
7883
                                    unset($temp);
7884
                                }
7885
                                if (is_array($keywords))
7886
                                {
7887
                                    $keywords = array_values(array_unique($keywords));
7888
                                }
7889
                            }
7890
                            else
7891
                            {
7892
                                $keywords = $keywords_parent;
@@ 8335-8354 (lines=20) @@
8332
                            $hashes = $hashes_parent;
8333
                        }
8334
                        // KEYWORDS
8335
                        if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['keywords']))
8336
                        {
8337
                            if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['keywords'][0]['data']))
8338
                            {
8339
                                $temp = explode(',', $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['keywords'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT));
8340
                                foreach ($temp as $word)
8341
                                {
8342
                                    $keywords[] = trim($word);
8343
                                }
8344
                                unset($temp);
8345
                            }
8346
                            if (is_array($keywords))
8347
                            {
8348
                                $keywords = array_values(array_unique($keywords));
8349
                            }
8350
                        }
8351
                        else
8352
                        {
8353
                            $keywords = $keywords_parent;
8354
                        }
8355
                        // PLAYER
8356
                        if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player']))
8357
                        {