Skip to content

Commit

Permalink
Improves Routes::scope by removing namespace separator at the beginni…
Browse files Browse the repository at this point in the history
…ng of the namespace
  • Loading branch information
Arul- committed Apr 13, 2014
1 parent 846b42c commit 1aa8bf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ public static function scope(ReflectionClass $class)
//===== STOP =====//
$reading = false;
if (!empty($namespace))
$imports[$alias] = $namespace;
$imports[$alias] = trim($namespace,'\\');
//===== START =====//
$reading = true;
$namespace = '';
Expand All @@ -642,7 +642,7 @@ public static function scope(ReflectionClass $class)
//===== STOP =====//
$reading = false;
if (!empty($namespace))
$imports[$alias] = $namespace;
$imports[$alias] = trim($namespace,'\\');
}
} elseif (T_USE == $token[0]) {
//===== START =====//
Expand Down

0 comments on commit 1aa8bf0

Please sign in to comment.