Permalink
Browse files

fixed CS

  • Loading branch information...
fabpot committed Feb 10, 2012
1 parent 0245ee6 commit 3c683c933d65aa9a535c9c419d536428afdabf80
Showing with 5 additions and 5 deletions.
  1. +5 −5 ClassMapGenerator.php
View
@@ -44,7 +44,7 @@ static public function dump($dirs, $file)
* @return array A class map array
*/
static public function createMap($dir)
- {
+ {
if (is_string($dir)) {
$dir = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($dir));
}
@@ -61,9 +61,9 @@ static public function createMap($dir)
if (pathinfo($path, PATHINFO_EXTENSION) !== 'php') {
continue;
}
-
+
$classes = self::findClasses($path);
-
+
foreach ($classes as $class) {
$map[$class] = $path;
}
@@ -90,7 +90,7 @@ static private function findClasses($path)
$namespace = '';
for ($i = 0, $max = count($tokens); $i < $max; $i++) {
$token = $tokens[$i];
-
+
if (is_string($token)) {
continue;
}
@@ -114,7 +114,7 @@ static private function findClasses($path)
while (($t = $tokens[++$i]) && is_array($t)) {
if (T_STRING === $t[0]) {
$class .= $t[1];
- } else if ($class !== '' && T_WHITESPACE == $t[0]) {
+ } elseif ($class !== '' && T_WHITESPACE == $t[0]) {
break;
}
}

0 comments on commit 3c683c9

Please sign in to comment.