Code Duplication    Length = 7-7 lines in 2 locations

api/src/Storage/Merge.php 2 locations

@@ 1780-1786 (lines=7) @@
1777
1778
		// split multiple comma or whitespace separated directories
1779
		// to still allow space or comma in dirnames, we also use the trailing slash of all pathes to split
1780
		if (count($dirs = preg_split('/[,\s]+\//', $dirs)) > 1)
1781
		{
1782
			foreach($dirs as $n => &$d)
1783
			{
1784
				if ($n) $d = '/'.$d;	// re-adding trailing slash removed by split
1785
			}
1786
		}
1787
		if ($mime_filter && ($negativ_filter = $mime_filter[0] === '!'))
1788
		{
1789
			if (is_array($mime_filter))
@@ 1863-1869 (lines=7) @@
1860
		{
1861
			// split multiple comma or whitespace separated directories
1862
			// to still allow space or comma in dirnames, we also use the trailing slash of all pathes to split
1863
			if (count($dirs = preg_split('/[,\s]+\//', $dirs)) > 1)
1864
			{
1865
				foreach($dirs as $n => &$d)
1866
				{
1867
					if ($n) $d = '/'.$d;	// re-adding trailing slash removed by split
1868
				}
1869
			}
1870
			foreach($dirs as $dir)
1871
			{
1872
				$files += Api\Vfs::find($dir,array(