From a0417d97c874eafc41363c1f6714165a385a4a44 Mon Sep 17 00:00:00 2001 From: vrana Date: Wed, 25 Apr 2012 16:23:06 -0700 Subject: [PATCH] Add assert_instances_of() Auditors: epriestley --- .../changesetview/DifferentialChangesetViewController.php | 1 - .../diffusion/view/browsetable/DiffusionBrowseTableView.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/differential/controller/changesetview/DifferentialChangesetViewController.php b/src/applications/differential/controller/changesetview/DifferentialChangesetViewController.php index 02dd0ca2be..719220144a 100644 --- a/src/applications/differential/controller/changesetview/DifferentialChangesetViewController.php +++ b/src/applications/differential/controller/changesetview/DifferentialChangesetViewController.php @@ -18,7 +18,6 @@ final class DifferentialChangesetViewController extends DifferentialController { - public function shouldRequireLogin() { return !$this->allowsAnonymousAccess(); } diff --git a/src/applications/diffusion/view/browsetable/DiffusionBrowseTableView.php b/src/applications/diffusion/view/browsetable/DiffusionBrowseTableView.php index 08bb4124f1..148b9925e4 100644 --- a/src/applications/diffusion/view/browsetable/DiffusionBrowseTableView.php +++ b/src/applications/diffusion/view/browsetable/DiffusionBrowseTableView.php @@ -22,6 +22,7 @@ final class DiffusionBrowseTableView extends DiffusionView { private $handles = array(); public function setPaths(array $paths) { + assert_instances_of($paths, 'DiffusionRepositoryPath'); $this->paths = $paths; return $this; }