Code Duplication    Length = 4-4 lines in 2 locations

lib/JSON_renderer.php 2 locations

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