Skip to content

Commit

Permalink
Trim exceptions for StaticAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
Gisleburt committed Feb 3, 2016
1 parent cd9c0b7 commit 3121c58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/php/PHPMD/Rule/CleanCode/StaticAccess.php
Expand Up @@ -118,6 +118,10 @@ private function getExceptionsList()
$exceptions = '';
}

return explode(',', $exceptions);
$exceptionList = explode(',', $exceptions);
foreach ($exceptionList as $key => $exception) {
$exceptionList[$key] = trim($exception);
}
return $exceptionList;
}
}

0 comments on commit 3121c58

Please sign in to comment.