Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 374-377 (lines=4) @@
371
372
			$element = array_shift($exploded);
373
374
			while ($element != self::HEADER_END) {
375
				$result[$element] = array_shift($exploded);
376
				$element = array_shift($exploded);
377
			}
378
		}
379
380
		return $result;

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

@@ 796-799 (lines=4) @@
793
				$exploded = explode(':', substr($header, strlen(Util::HEADER_START)+1));
794
795
				$element = array_shift($exploded);
796
				while ($element !== Util::HEADER_END) {
797
					$result[$element] = array_shift($exploded);
798
					$element = array_shift($exploded);
799
				}
800
			}
801
		}
802