Code Duplication    Length = 9-9 lines in 2 locations

src/Aimeos/Shop/Controller/JqadmController.php 1 location

@@ 46-54 (lines=9) @@
43
		$aimeos = app( '\Aimeos\Shop\Base\Aimeos' )->get();
44
		$type = Route::input( 'type', Input::get( 'type', 'js' ) );
45
46
		foreach( $aimeos->getCustomPaths( 'admin/jqadm' ) as $base => $paths )
47
		{
48
			foreach( $paths as $path )
49
			{
50
				$jsbAbsPath = $base . '/' . $path;
51
				$jsb2 = new \Aimeos\MW\Jsb2\Standard( $jsbAbsPath, dirname( $jsbAbsPath ) );
52
				$files = array_merge( $files, $jsb2->getFiles( $type ) );
53
			}
54
		}
55
56
		foreach( $files as $file )
57
		{

src/Aimeos/Shop/Controller/ExtadmController.php 1 location

@@ 142-150 (lines=9) @@
139
		$jsFiles = array();
140
		$aimeos = app( '\Aimeos\Shop\Base\Aimeos' )->get();
141
142
		foreach( $aimeos->getCustomPaths( 'admin/extjs' ) as $base => $paths )
143
		{
144
			foreach( $paths as $path )
145
			{
146
				$jsbAbsPath = $base . '/' . $path;
147
				$jsb2 = new \Aimeos\MW\Jsb2\Standard( $jsbAbsPath, dirname( $jsbAbsPath ) );
148
				$jsFiles = array_merge( $jsFiles, $jsb2->getFiles( 'js' ) );
149
			}
150
		}
151
152
		foreach( $jsFiles as $file )
153
		{