Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mehlah committed Jan 17, 2012
1 parent 17883c0 commit d637f71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions analysis/Inspector.php
Expand Up @@ -216,17 +216,17 @@ function($str) { return preg_quote($str, '/'); },
foreach ($tokens as $token) {
if (is_array($token)) {
if (!in_array($token[0], array(T_COMMENT, T_DOC_COMMENT, T_WHITESPACE))) {
array_push($tmp, $token[2]);
$tmp[] = $token[2];
}
}
}

$lines_without_comments = array_values(array_map(
$filteredLines = array_values(array_map(
function($ln) use ($start) { return $ln + $start - 1; },
array_unique($tmp))
);

$lines = array_intersect_key($lines, array_flip($lines_without_comments));
$lines = array_intersect_key($lines, array_flip($filteredLines));

$result = array_keys(array_filter($lines, function($line) use ($options) {
$line = trim($line);
Expand Down

0 comments on commit d637f71

Please sign in to comment.