src/Phinx/Util/Util.php
public static function mapFileNameToClassName($fileName)
    {
        $matches = [];
        if (preg_match(static::MIGRATION_FILE_NAME_PATTERN, $fileName, $matches)) {
            $fileName = $matches[1];
        }

        return str_replace(' ', '', ucwords(str_replace('_', ' ', $fileName)));
    }
public static function mapFileNameToClassName($fileName)
    {
        $matches = [];
        if (preg_match(static::MIGRATION_FILE_NAME_PATTERN, $fileName, $matches)) {
            $fileName = $matches[1];
        }

        return str_replace(' ', '', ucwords(str_replace('_', ' ', $fileName)));
    }
public static function mapFileNameToClassName ( $ fileName ) { $ matches = [ ] ; if ( preg_match ( static :: MIGRATION_FILE_NAME_PATTERN , $ fileName , $ matches ) ) { $ fileName = $ matches [ 1 ] ; } return str_replace ( ' ' , '' , ucwords ( str_replace ( '_' , ' ' , $ fileName ) ) ) ; }
Turn file names like '12345678901234_create_user_table.php' into class
names like 'CreateUserTable'.

@param string $fileName File Name
@return string
Turn file names like 12345678901234_create_user_table . php into class names like CreateUserTable .