Code Duplication    Length = 12-13 lines in 2 locations

src/Aviat/AnimeClient/Controller/Anime.php 1 location

@@ 46-58 (lines=13) @@
43
	 *
44
	 * @param ContainerInterface $container
45
	 */
46
	public function __construct(ContainerInterface $container)
47
	{
48
		parent::__construct($container);
49
50
		$this->model = $container->get('anime-model');
51
52
		$this->base_data = array_merge($this->base_data, [
53
			'menu_name' => 'anime_list',
54
			'url_type' => 'anime',
55
			'other_type' => 'manga',
56
			'config' => $this->config,
57
		]);
58
	}
59
60
	/**
61
	 * Show a portion, or all of the anime list

src/Aviat/AnimeClient/Controller/Manga.php 1 location

@@ 46-57 (lines=12) @@
43
	 *
44
	 * @param ContainerInterface $container
45
	 */
46
	public function __construct(ContainerInterface $container)
47
	{
48
		parent::__construct($container);
49
50
		$this->model = $container->get('manga-model');
51
		$this->base_data = array_merge($this->base_data, [
52
			'menu_name' => 'manga_list',
53
			'config' => $this->config,
54
			'url_type' => 'manga',
55
			'other_type' => 'anime'
56
		]);
57
	}
58
59
	/**
60
	 * Get a section of the manga list