8000 Remove `dead code` and improve method `machCode()`. by terabytesoftw · Pull Request #181 · codemix/yii2-localeurls · GitHub
[go: up one dir, main page]

Skip to content

Conversation

terabytesoftw
Copy link
Contributor
Q A
Is bugfix? ✔️
New feature?
Breaks BC?

} else {
return [null, null];
}
return $hasDash ? explode('-', $result, 2) : [$result, null];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, before I dig deeper into this: The code here has seen a couple of iterations so I think there was good reason why it was written that way. At a quick glance your change seems to oversimplify things.

I'd prefer not to touch it as the library has worked reliably for years ("If it ain't broken - don't fix it").

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

Successfully merging this pull request may close these issues.

2 participants

0