core/Command/Config/Import.php
/**
	 * @param string $content
	 * @return array
	 * @throws \UnexpectedValueException when the array is invalid
	 */
@param string $content
@return array
@throws \UnexpectedValueException when the array is invalid
@param string $content @return array @throws \ UnexpectedValueException when the array is invalid
protected function validateFileContent($content) {
		$decodedContent = json_decode($content, true);
		if (!is_array($decodedContent) || empty($decodedContent)) {
			throw new \UnexpectedValueException('The file must contain a valid json array');
		}
		$this->validateArray($decodedContent);
		return $decodedContent;
	}
protected function validateFileContent ( $ content ) { $ decodedContent = json_decode ( $ content , true ) ; if ( ! is_array ( $ decodedContent ) || empty ( $ decodedContent ) ) { throw new \ UnexpectedValueException ( 'The file must contain a valid json array' ) ; } $ this -> validateArray ( $ decodedContent ) ; return $ decodedContent ; }
@param string $content
 @return array
 @throws \UnexpectedValueException when the array is invalid
@param string $content @return array @throws \ UnexpectedValueException when the array is invalid