original_string: protected function retrieveModels(array $entity = [])
      {
          $models = [];
          foreach ((array) $entity as $node) {
              $models[] = $this->models->get($node);
          }
  
          if (empty($models)) {
              $models = $this->models->all();
          }
  
          return $models;
      }
code: protected function retrieveModels(array $entity = [])
      {
          $models = [];
          foreach ((array) $entity as $node) {
              $models[] = $this->models->get($node);
          }
  
          if (empty($models)) {
              $models = $this->models->all();
          }
  
          return $models;
      }
code_tokens: protected function retrieveModels ( array $ entity = [ ] ) { $ models = [ ] ; foreach ( ( array ) $ entity as $ node ) { $ models [ ] = $ this -> models -> get ( $ node ) ; } if ( empty ( $ models ) ) { $ models = $ this -> models -> all ( ) ; } return $ models ; }
docstring: Returns array with models for operation
  
  @param array $entity
  
  @return ModelInterface[]
docstring_tokens: Returns array with models for operation