Code Duplication    Length = 11-11 lines in 2 locations

config/thumbnails.php 2 locations

@@ 11-21 (lines=11) @@
8
			'does'        => 'resize',
9
			'constraints' => 'aspectRatio, upsize'
10
		],
11
		'function' => function ($image, $width = 300, $height = 200, $layout = 'custom_resize') {
12
//			$name_pieces = explode('/', $image);
13
//			$name = end($name_pieces);
14
15
			$image = Image::make(public_path() . '/uploads/' . $image)->resize($width, $height, function ($constraint) {
16
				$constraint->aspectRatio();
17
				$constraint->upsize();
18
			});
19
20
			return \Mascame\Artificer\ArtificerImage::store($image, public_path() . '/uploads/' . $layout . '/');
21
		}
22
	],
23
24
	'ultra_custom'  => [
@@ 30-40 (lines=11) @@
27
			'does'        => 'resize',
28
			'constraints' => 'aspectRatio, upsize'
29
		],
30
		'function' => function ($image, $width = 300, $height = 200, $layout = 'layout_home2') {
31
//			$name_pieces = explode('/', $image);
32
//			$name = end($name_pieces);
33
34
			$image = Image::make(public_path() . '/uploads/' . $image)->resize($width, $height, function ($constraint) {
35
				$constraint->aspectRatio();
36
				$constraint->upsize();
37
			});
38
39
			return \Mascame\Artificer\ArtificerImage::store($image, public_path() . '/uploads/' . $layout . '/');
40
		}
41
	]
42
];