Code Duplication    Length = 4-4 lines in 2 locations

apps/encryption/lib/crypto/crypt.php 1 location

@@ 497-500 (lines=4) @@
494
495
			$element = array_shift($exploded);
496
497
			while ($element != self::HEADER_END) {
498
				$result[$element] = array_shift($exploded);
499
				$element = array_shift($exploded);
500
			}
501
		}
502
503
		return $result;

lib/private/files/storage/wrapper/encryption.php 1 location

@@ 827-830 (lines=4) @@
824
				$exploded = explode(':', substr($header, strlen(Util::HEADER_START)+1));
825
826
				$element = array_shift($exploded);
827
				while ($element !== Util::HEADER_END) {
828
					$result[$element] = array_shift($exploded);
829
					$element = array_shift($exploded);
830
				}
831
			}
832
		}
833