Code Duplication    Length = 4-4 lines in 2 locations

apps/encryption/lib/Crypto/Crypt.php 1 location

@@ 608-611 (lines=4) @@
605
606
			$element = array_shift($exploded);
607
608
			while ($element != self::HEADER_END) {
609
				$result[$element] = array_shift($exploded);
610
				$element = array_shift($exploded);
611
			}
612
		}
613
614
		return $result;

lib/private/Files/Storage/Wrapper/Encryption.php 1 location

@@ 895-898 (lines=4) @@
892
				$exploded = explode(':', substr($header, strlen(Util::HEADER_START)+1));
893
894
				$element = array_shift($exploded);
895
				while ($element !== Util::HEADER_END) {
896
					$result[$element] = array_shift($exploded);
897
					$element = array_shift($exploded);
898
				}
899
			}
900
		}
901