Code Duplication    Length = 10-10 lines in 5 locations

lib/PageAuthorDetail.php 1 location

@@ 9-18 (lines=10) @@
6
 * @author     Sébastien Lucas <[email protected]>
7
 */
8
9
class PageAuthorDetail extends Page
10
{
11
    public function InitializeContent ()
12
    {
13
        $author = Author::getAuthorById ($this->idGet);
14
        $this->idPage = $author->getEntryId ();
15
        $this->title = $author->name;
16
        list ($this->entryArray, $this->totalNumber) = Book::getBooksByAuthor ($this->idGet, $this->n);
17
    }
18
}
19

lib/PageLanguageDetail.php 1 location

@@ 9-18 (lines=10) @@
6
 * @author     Sébastien Lucas <[email protected]>
7
 */
8
9
class PageLanguageDetail extends Page
10
{
11
    public function InitializeContent ()
12
    {
13
        $language = Language::getLanguageById ($this->idGet);
14
        $this->idPage = $language->getEntryId ();
15
        $this->title = $language->lang_code;
16
        list ($this->entryArray, $this->totalNumber) = Book::getBooksByLanguage ($this->idGet, $this->n);
17
    }
18
}
19

lib/PagePublisherDetail.php 1 location

@@ 9-18 (lines=10) @@
6
 * @author     Sébastien Lucas <[email protected]>
7
 */
8
9
class PagePublisherDetail extends Page
10
{
11
    public function InitializeContent ()
12
    {
13
        $publisher = Publisher::getPublisherById ($this->idGet);
14
        $this->title = $publisher->name;
15
        list ($this->entryArray, $this->totalNumber) = Book::getBooksByPublisher ($this->idGet, $this->n);
16
        $this->idPage = $publisher->getEntryId ();
17
    }
18
}
19

lib/PageSerieDetail.php 1 location

@@ 9-18 (lines=10) @@
6
 * @author     Sébastien Lucas <[email protected]>
7
 */
8
9
class PageSerieDetail extends Page
10
{
11
    public function InitializeContent ()
12
    {
13
        $serie = Serie::getSerieById ($this->idGet);
14
        $this->title = $serie->name;
15
        list ($this->entryArray, $this->totalNumber) = Book::getBooksBySeries ($this->idGet, $this->n);
16
        $this->idPage = $serie->getEntryId ();
17
    }
18
}
19

lib/PageTagDetail.php 1 location

@@ 9-18 (lines=10) @@
6
 * @author     Sébastien Lucas <[email protected]>
7
 */
8
9
class PageTagDetail extends Page
10
{
11
    public function InitializeContent ()
12
    {
13
        $tag = Tag::getTagById ($this->idGet);
14
        $this->idPage = $tag->getEntryId ();
15
        $this->title = $tag->name;
16
        list ($this->entryArray, $this->totalNumber) = Book::getBooksByTag ($this->idGet, $this->n);
17
    }
18
}
19