Code Duplication    Length = 4-4 lines in 2 locations

lib/JSON_renderer.php 2 locations

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