Skip to content

Conversation

@lsmith77
Copy link
Member

No description provided.

Copy link
Member

Choose a reason for hiding this comment

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

a path with a trailing slash is invalid anyways. but lets be defensive here.

i fail to understand why the count for the root node '/' returns 0, but the test seems to prove it works as expected

Copy link
Member Author

Choose a reason for hiding this comment

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

because rtrim('/', '/') === ''

Copy link
Member

Choose a reason for hiding this comment

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

d'oh

dbu added a commit that referenced this pull request Apr 24, 2013
added PathHelper::getPathDepth()
@dbu dbu merged commit a21f770 into master Apr 24, 2013
@dbu dbu deleted the path_depth branch April 24, 2013 13:32
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.

3 participants