original_string: public function getExpandActions($actions)
      {
          $actions = (array) $actions;
          return array_flatten(array_map(function ($action) use ($actions) {
              return array_key_exists($action, $this->getAliasedActions()) ? [$action, $this->getExpandActions($this->getAliasedActions()[$action])] : $action;
          }, $actions));
      }
code: public function getExpandActions($actions)
      {
          $actions = (array) $actions;
          return array_flatten(array_map(function ($action) use ($actions) {
              return array_key_exists($action, $this->getAliasedActions()) ? [$action, $this->getExpandActions($this->getAliasedActions()[$action])] : $action;
          }, $actions));
      }
code_tokens: public function getExpandActions ( $ actions ) { $ actions = ( array ) $ actions ; return array_flatten ( array_map ( function ( $ action ) use ( $ actions ) { return array_key_exists ( $ action , $ this -> getAliasedActions ( ) ) ? [ $ action , $ this -> getExpandActions ( $ this -> getAliasedActions ( ) [ $ action ] ) ] : $ action ; } , $ actions ) ) ; }
docstring: rely on the actions to be expanded.
docstring_tokens: rely on the actions to be expanded .