Variable global scope [closed]

Globals are generally discourgaged. You can use define instead.

<?php
define("FILM_LABEL", "Films");
define("SHOW_LABEL", "Shows");
function CreatePostTypes() {
    register_post_type( FILM_LABEL, GenerateFilmType( FILM_LABEL ) );
    register_post_type( SHOW_LABEL, GenerateFilmType( SHOW_LABEL ) );
}
add_action( 'init', 'CreatePostTypes' );