Skip to content

Commit

Permalink
Merge pull request #138 from risingphoenix/master
Browse files Browse the repository at this point in the history
Update utils.py
  • Loading branch information
erichard authored Feb 5, 2020
2 parents 329563a + 0dd69fb commit e14240d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php_companion/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_composer():
def get_namespace(filename):
data = get_composer()
for _replace_with, _path in data['autoload']['psr-4'].items():
_path = normalize_to_system_style_path(_path)
_path = normalize_to_system_style_path(_path)
if _path.startswith('./'):
_path = _path[2:]

Expand All @@ -93,7 +93,7 @@ def get_namespace(filename):
return namespace.strip("\\").replace('\\\\', '\\')

for _replace_with, _path in data['autoload-dev']['psr-4'].items():
_path = normalize_to_system_style_path(_path)
_path = normalize_to_system_style_path(_path)
if _path.startswith('./'):
_path = _path[2:]

Expand Down

0 comments on commit e14240d

Please sign in to comment.