original_string: protected function getGateArguments($request, $models)
      {
          if (is_null($models)) {
              return [];
          }
  
          return collect($models)->map(function ($model) use ($request) {
              return $model instanceof Model ? $model : $this->getModel($request, $model);
          })->all();
      }
code: protected function getGateArguments($request, $models)
      {
          if (is_null($models)) {
              return [];
          }
  
          return collect($models)->map(function ($model) use ($request) {
              return $model instanceof Model ? $model : $this->getModel($request, $model);
          })->all();
      }
code_tokens: protected function getGateArguments ( $ request , $ models ) { if ( is_null ( $ models ) ) { return [ ] ; } return collect ( $ models ) -> map ( function ( $ model ) use ( $ request ) { return $ model instanceof Model ? $ model : $ this -> getModel ( $ request , $ model ) ; } ) -> all ( ) ; }
docstring: Get the arguments parameter for the gate.
  
  @param  \Illuminate\Http\Request  $request
  @param  array|null  $models
  @return array|string|\Illuminate\Database\Eloquent\Model
docstring_tokens: Get the arguments parameter for the gate .