Browse Source

make local functions protected

pull/741/head
Seth Shaw 6 years ago
parent
commit
fd4c9f0e1b
  1. 6
      src/Commands/IslandoraCommands.php

6
src/Commands/IslandoraCommands.php

@ -53,7 +53,7 @@ class IslandoraCommands extends DrushCommands {
/** /**
* Validate the provided userid. * Validate the provided userid.
*/ */
public function validateUser(CommandData $commandData) { protected function validateUser(CommandData $commandData) {
$userid = $commandData->input()->getOption('userid'); $userid = $commandData->input()->getOption('userid');
if ($userid) { if ($userid) {
$account = User::load($userid); $account = User::load($userid);
@ -84,7 +84,7 @@ class IslandoraCommands extends DrushCommands {
/** /**
* Switch the active user account using the provided userid. * Switch the active user account using the provided userid.
*/ */
public function switchUser(CommandData $commandData) { protected function switchUser(CommandData $commandData) {
$userid = $commandData->input()->getOption('userid'); $userid = $commandData->input()->getOption('userid');
if ($userid) { if ($userid) {
$account = User::load($userid); $account = User::load($userid);
@ -125,7 +125,7 @@ class IslandoraCommands extends DrushCommands {
/** /**
* Switch the user back. * Switch the user back.
*/ */
public function switchUserBack(CommandData $commandData) { protected function switchUserBack(CommandData $commandData) {
if ($commandData->input()->getOption('userid')) { if ($commandData->input()->getOption('userid')) {
$accountSwitcher = \Drupal::service('account_switcher'); $accountSwitcher = \Drupal::service('account_switcher');
$this->logger()->notice(dt( $this->logger()->notice(dt(

Loading…
Cancel
Save