Summary: Apply various minor linter fixes.
Test Plan: `arc lint`
Reviewers: #blessed_reviewers, epriestley
Reviewed By: #blessed_reviewers, epriestley
Subscribers: aurelijus, Korvin, epriestley
Differential Revision: https://secure.phabricator.com/D13106
abstract class ArcanistExternalLinterTestCase extends ArcanistLinterTestCase {
- public final function testVersion() {
+ final public function testVersion() {
try {
$version = $this->getLinter()->getVersion();
$this->assertTrue(
*
* @return ArcanistLinter
*/
- protected final function getLinter() {
+ final protected function getLinter() {
$matches = null;
if (!preg_match('/^(\w+Linter)TestCase$/', get_class($this), $matches) ||
!is_subclass_of($matches[1], 'ArcanistLinter')) {
return newv($matches[1], array());
}
- public abstract function testLinter();
+ abstract public function testLinter();
/**
* Executes all tests from the specified subdirectory. If a linter is not
*
* @return map
*/
- private static final function getCallerInfo() {
+ final private static function getCallerInfo() {
$callee = array();
$caller = array();
$seen = false;
if ($line->getAttribute('type') != 'stmt') {
$coverage .= 'N';
} else {
- if ((int) $line->getAttribute('count') == 0) {
+ if ((int)$line->getAttribute('count') == 0) {
$coverage .= 'U';
- } else if ((int) $line->getAttribute('count') > 0) {
+ } else if ((int)$line->getAttribute('count') > 0) {
$coverage .= 'C';
}
}