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

@@ 807-810 (lines=4) @@
804
				$exploded = explode(':', substr($header, strlen(Util::HEADER_START)+1));
805
806
				$element = array_shift($exploded);
807
				while ($element !== Util::HEADER_END) {
808
					$result[$element] = array_shift($exploded);
809
					$element = array_shift($exploded);
810
				}
811
			}
812
		}
813