Fix errors found by PHPStan
Test Plan: Ran `phpstan analyze -a autoload.php phabricator/src`. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, hach-que Differential Revision: https://secure.phabricator.com/D17371
This commit is contained in:
@@ -44,7 +44,7 @@ final class DiffusionBrowseController extends DiffusionController {
|
||||
$is_file = ($reason == DiffusionBrowseResultSet::REASON_IS_FILE);
|
||||
|
||||
if ($is_file) {
|
||||
return $this->browseFile($results);
|
||||
return $this->browseFile();
|
||||
} else {
|
||||
$paths = $results->getPaths();
|
||||
$paths = $pager->sliceResults($paths);
|
||||
|
||||
@@ -357,7 +357,7 @@ abstract class DiffusionController extends PhabricatorController {
|
||||
$stable_commit = $drequest->getStableCommit();
|
||||
|
||||
$stable_commit_hash = PhabricatorHash::digestForIndex($stable_commit);
|
||||
$readme_path_hash = PhabricatorHash::digestForindex($readme_path);
|
||||
$readme_path_hash = PhabricatorHash::digestForIndex($readme_path);
|
||||
|
||||
$cache = PhabricatorCaches::getMutableStructureCache();
|
||||
$cache_key = "diffusion".
|
||||
|
||||
@@ -59,7 +59,7 @@ final class DiffusionHistoryController extends DiffusionController {
|
||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
|
||||
->setTable($history_table);
|
||||
|
||||
$header = $this->buildHeader($drequest, $repository);
|
||||
$header = $this->buildHeader($drequest);
|
||||
|
||||
$crumbs = $this->buildCrumbs(
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user