Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 220-230 (lines=11) @@
217
	 * @param array $array
218
	 * @return void
219
	 */
220
	private function sort_by_name(&$array)
221
	{
222
		$sort = array();
223
224
		foreach ($array as $key => $item)
225
		{
226
			$sort[$key] = $item['manga']['title'];
227
		}
228
229
		array_multisort($sort, SORT_ASC, $array);
230
	}
231
}
232
// End of MangaModel.php

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

@@ 266-276 (lines=11) @@
263
	 * @param array $array
264
	 * @return void
265
	 */
266
	protected function sort_by_name(&$array)
267
	{
268
		$sort = array();
269
270
		foreach ($array as $key => $item)
271
		{
272
			$sort[$key] = $item['anime']['title'];
273
		}
274
275
		array_multisort($sort, SORT_ASC, $array);
276
	}
277
}
278
// End of AnimeModel.php