Code Duplication    Length = 4-4 lines in 2 locations

lib/JSON_renderer.php 2 locations

@@ 95-98 (lines=4) @@
92
            array_push ($out ["datas"], $tab);
93
        }
94
        $out ["authors"] = array ();
95
        foreach ($book->getAuthors () as $author) {
96
            $link = new LinkNavigation ($author->getUri ());
97
            array_push ($out ["authors"], array ("name" => $author->name, "url" => $link->hrefXhtml ()));
98
        }
99
        $out ["tags"] = array ();
100
        foreach ($book->getTags () as $tag) {
101
            $link = new LinkNavigation ($tag->getUri ());
@@ 100-103 (lines=4) @@
97
            array_push ($out ["authors"], array ("name" => $author->name, "url" => $link->hrefXhtml ()));
98
        }
99
        $out ["tags"] = array ();
100
        foreach ($book->getTags () as $tag) {
101
            $link = new LinkNavigation ($tag->getUri ());
102
            array_push ($out ["tags"], array ("name" => $tag->name, "url" => $link->hrefXhtml ()));
103
        }
104
        $out ["customcolumns_preview"] = $book->getCustomColumnValues($config['cops_calibre_custom_column_preview']);
105
106
        return $out;