private static function code( $metaplate ) {
		foreach ( array( 'html', 'js', 'css' ) as $field ) {
			if ( isset( $metaplate[ $field ] ) ) {
				if ( is_object( $metaplate[ $field ] ) ) {
					$value = $metaplate[ $field ];
					$value = $value->code;
					unset( $metaplate[ $field ] );
					$metaplate[ $field ]['code' ] = $value;
				}

			}
			else {
				$metaplate[ $field ][ 'code' ] = 1;
			}
		}

		return $metaplate;

	}