Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: global command #126

Open
BrianHenryIE opened this issue Nov 6, 2024 · 0 comments
Open

Add: global command #126

BrianHenryIE opened this issue Nov 6, 2024 · 0 comments

Comments

@BrianHenryIE
Copy link
Owner

BrianHenryIE commented Nov 6, 2024

I don't really like the manner that global classes' class names are prefixed, I'd prefer global classes were moved into a namespace.

strauss global --namespace Company\\Project --paths src/,my-plugin.php

<?php

class LivingDangerously {
}

before

<?php

class Safely_LivingDangerously {
}

instead

<?php

namespace Safely;

class LivingDangerously {
}

Edit: it makes sense to tackle #74 at the same time. I.e. make Strauss aware of functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant