Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

PHPApi in php_generator.py does not strip out spaces from api class name #37

@spuniani

Description

@spuniani

api.py toClassName method strips out spaces.

return utilities.CamelCase(s).replace(' ', '')

however, this method is overridden in PHPApi, and the override does not strip out spaces. So if the owner name in the API annotations has spaces in it, the generator php classes are no longer valid.

On the same note, php classes also can't have "." in them, so these also need to be substituted out (possibly underscore "_"?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions