Code Duplication    Length = 9-9 lines in 2 locations

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

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

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
		{