Code Duplication    Length = 7-7 lines in 2 locations

api/src/Storage/Merge.php 2 locations

@@ 1807-1813 (lines=7) @@
1804
1805
		// split multiple comma or whitespace separated directories
1806
		// to still allow space or comma in dirnames, we also use the trailing slash of all pathes to split
1807
		if (count($dirs = preg_split('/[,\s]+\//', $dirs)) > 1)
1808
		{
1809
			foreach($dirs as $n => &$d)
1810
			{
1811
				if ($n) $d = '/'.$d;	// re-adding trailing slash removed by split
1812
			}
1813
		}
1814
		if ($mime_filter && ($negativ_filter = $mime_filter[0] === '!'))
1815
		{
1816
			if (is_array($mime_filter))
@@ 1890-1896 (lines=7) @@
1887
		{
1888
			// split multiple comma or whitespace separated directories
1889
			// to still allow space or comma in dirnames, we also use the trailing slash of all pathes to split
1890
			if (count($dirs = preg_split('/[,\s]+\//', $dirs)) > 1)
1891
			{
1892
				foreach($dirs as $n => &$d)
1893
				{
1894
					if ($n) $d = '/'.$d;	// re-adding trailing slash removed by split
1895
				}
1896
			}
1897
			foreach($dirs as $dir)
1898
			{
1899
				$files += Api\Vfs::find($dir,array(