$replace);
}
- protected function buildFutures(array $paths) {
+ final protected function buildFutures(array $paths) {
return $this->getXHPASTLinter()->buildSharedFutures($paths);
}
* @return ArcanistBaseXHPASTLinter Responsible linter.
* @task sharing
*/
- protected function getXHPASTLinter() {
+ final protected function getXHPASTLinter() {
$resource_key = 'xhpast.linter';
// If we're the first linter to run, share ourselves. Otherwise, grab the
* @return list<ExecFuture> Futures.
* @task sharing
*/
- protected function buildSharedFutures(array $paths) {
+ final protected function buildSharedFutures(array $paths) {
foreach ($paths as $path) {
if (!isset($this->futures[$path])) {
$this->futures[$path] = xhpast_get_parser_future($this->getData($path));
* @return XHPASTTree|null Tree, or null if unparseable.
* @task sharing
*/
- protected function getXHPASTTreeForPath($path) {
+ final protected function getXHPASTTreeForPath($path) {
// If we aren't the linter responsible for actually building the parse
// trees, go get the tree from that linter.
* @return Exeption|null Parse exception, if available.
* @task sharing
*/
- protected function getXHPASTExceptionForPath($path) {
+ final protected function getXHPASTExceptionForPath($path) {
if ($this->getXHPASTLinter() !== $this) {
return $this->getXHPASTLinter()->getXHPASTExceptionForPath($path);
}
return $this->data[$path];
}
- public function setEngine(ArcanistLintEngine $engine) {
+ final public function setEngine(ArcanistLintEngine $engine) {
$this->engine = $engine;
return $this;
}
* @param wild Default value to return if key is not present in config.
* @return wild Configured value, or default if no configuration exists.
*/
- protected function getDeprecatedConfiguration($key, $default = null) {
+ final protected function getDeprecatedConfiguration($key, $default = null) {
// If we're being called in a context without an engine (probably from
// `arc linters`), just return the default value.